Merge branch 'feat-typed-hc' of github.com:hashicorp/boundary-ui into feat-typed-hc

This commit is contained in:
dharini committed 2022-02-08 10:31:15 -08:00
commit f2ea864c0d
1 file changed
+8
@@ -17,6 +17,14 @@ export default class ScopesScopeHostCatalogsNewRoute extends Route {
// =methods
/**
* Rollback/destroy any new, unsaved instances from this route before
* creating another.
*/
beforeModel() {
if (this.currentModel?.isNew) this.currentModel.rollbackAttributes();
}
/**
* Creates a new unsaved host catalog belonging to the current scope.
* @return {HostCatalogModel}