Fixed cancel and drop-initiated edit
This commit is contained in:
@@ -75,6 +75,7 @@ define(
|
||||
var editableObject;
|
||||
if (!this.domainObject.hasCapability("editor")) {
|
||||
editableObject = new EditableDomainObject(this.domainObject, this.$q);
|
||||
editableObject.getCapability('status').set('editing', true);
|
||||
this.navigationService.setNavigation(editableObject);
|
||||
}
|
||||
//this.$location.path("/edit");
|
||||
|
||||
@@ -118,7 +118,6 @@ define(
|
||||
|
||||
cache = new EditableDomainObjectCache(EditableDomainObjectImpl, $q);
|
||||
cachedObject = cache.getEditableObject(domainObject);
|
||||
cachedObject.getCapability('status').set('editing', true);
|
||||
|
||||
return cachedObject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user