mirror of
https://github.com/nasa/openmct.git
synced 2025-03-25 13:28:38 +00:00
[Persistence] Remove persistence usage from TimelineSwimlaneDecorator
This commit is contained in:
parent
3f330dccf1
commit
bea9f22a0c
@ -37,7 +37,6 @@ define(
|
||||
var domainObject = swimlane && swimlane.domainObject,
|
||||
model = (domainObject && domainObject.getModel()) || {},
|
||||
mutator = domainObject && domainObject.getCapability('mutation'),
|
||||
persister = domainObject && domainObject.getCapability('persistence'),
|
||||
type = domainObject && domainObject.getCapability('type'),
|
||||
dropHandler = new TimelineSwimlaneDropHandler(swimlane);
|
||||
|
||||
@ -50,7 +49,7 @@ define(
|
||||
mutator.mutate(function (model) {
|
||||
model.relationships = model.relationships || {};
|
||||
model.relationships[ACTIVITY_RELATIONSHIP] = value;
|
||||
}).then(persister.persist);
|
||||
});
|
||||
}
|
||||
}
|
||||
// ...otherwise, use as a getter
|
||||
@ -65,7 +64,7 @@ define(
|
||||
// Update the link
|
||||
mutator.mutate(function (model) {
|
||||
model.link = value;
|
||||
}).then(persister.persist);
|
||||
});
|
||||
}
|
||||
return model.link;
|
||||
}
|
||||
@ -86,7 +85,7 @@ define(
|
||||
}
|
||||
|
||||
// Activities should have the Activity Modes and Activity Link dialog
|
||||
if (type && type.instanceOf("activity") && mutator && persister) {
|
||||
if (type && type.instanceOf("activity") && mutator) {
|
||||
swimlane.modes = modes;
|
||||
swimlane.link = link;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user