[New Edit Mode] #628 Removed duplicate logic from Create Action

This commit is contained in:
Henry
2016-05-23 15:03:20 -07:00
parent 5b6ea600ba
commit eff46b076c
2 changed files with 23 additions and 13 deletions

View File

@@ -74,6 +74,12 @@ define(
self.domainObject.getCapability('editor').cancel();
self.navigationService.removeListener(cancelEditing);
}
//If this is not the currently navigated object, then navigate
// to it.
if (this.navigationService.getNavigation() !== this.domainObject) {
this.navigationService.setNavigation(this.domainObject);
}
this.navigationService.addListener(cancelEditing);
this.domainObject.useCapability("editor");
};