mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 22:28:13 +00:00
[New Edit Mode] Add Elements pool to New Edit Mode #279
This commit is contained in:
@ -48,6 +48,8 @@ define(
|
||||
function EditRepresenter($q, $log, scope) {
|
||||
var self = this;
|
||||
|
||||
this.scope = scope;
|
||||
|
||||
// Mutate and persist a new version of a domain object's model.
|
||||
function doPersist(model) {
|
||||
var domainObject = self.domainObject;
|
||||
@ -100,6 +102,8 @@ define(
|
||||
this.key = (representation || {}).key;
|
||||
// Track the represented object
|
||||
this.domainObject = representedObject;
|
||||
this.scope.editMode = representedObject.hasCapability("editor");
|
||||
|
||||
// Ensure existing watches are released
|
||||
this.destroy();
|
||||
};
|
||||
|
Reference in New Issue
Block a user