mirror of
https://github.com/nasa/openmct.git
synced 2025-05-29 13:44:21 +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,
|
var domainObject = swimlane && swimlane.domainObject,
|
||||||
model = (domainObject && domainObject.getModel()) || {},
|
model = (domainObject && domainObject.getModel()) || {},
|
||||||
mutator = domainObject && domainObject.getCapability('mutation'),
|
mutator = domainObject && domainObject.getCapability('mutation'),
|
||||||
persister = domainObject && domainObject.getCapability('persistence'),
|
|
||||||
type = domainObject && domainObject.getCapability('type'),
|
type = domainObject && domainObject.getCapability('type'),
|
||||||
dropHandler = new TimelineSwimlaneDropHandler(swimlane);
|
dropHandler = new TimelineSwimlaneDropHandler(swimlane);
|
||||||
|
|
||||||
@ -50,7 +49,7 @@ define(
|
|||||||
mutator.mutate(function (model) {
|
mutator.mutate(function (model) {
|
||||||
model.relationships = model.relationships || {};
|
model.relationships = model.relationships || {};
|
||||||
model.relationships[ACTIVITY_RELATIONSHIP] = value;
|
model.relationships[ACTIVITY_RELATIONSHIP] = value;
|
||||||
}).then(persister.persist);
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ...otherwise, use as a getter
|
// ...otherwise, use as a getter
|
||||||
@ -65,7 +64,7 @@ define(
|
|||||||
// Update the link
|
// Update the link
|
||||||
mutator.mutate(function (model) {
|
mutator.mutate(function (model) {
|
||||||
model.link = value;
|
model.link = value;
|
||||||
}).then(persister.persist);
|
});
|
||||||
}
|
}
|
||||||
return model.link;
|
return model.link;
|
||||||
}
|
}
|
||||||
@ -86,7 +85,7 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Activities should have the Activity Modes and Activity Link dialog
|
// 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.modes = modes;
|
||||||
swimlane.link = link;
|
swimlane.link = link;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user