Merge branch 'feat-typed-hc' of github.com:hashicorp/boundary-ui into feat-typed-hc
This commit is contained in:
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}
|
||||
|
||||
Reference in new issue
Block a user