mirror of
https://github.com/nasa/openmct.git
synced 2025-04-16 15:29:20 +00:00
[Timeline] Deinline null action
...used for cases when no action is needed for timeline move (and ids will just be reordered.)
This commit is contained in:
parent
e7a6c34bcc
commit
e0a69744e5
@ -26,6 +26,12 @@ define(
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
var NULL_ACTION = {
|
||||
perform: function () {
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Handles drop (from drag-and-drop) initiated changes to a swimlane.
|
||||
* @constructor
|
||||
@ -119,11 +125,7 @@ define(
|
||||
droppedParentId = droppedParent && droppedParent.getId();
|
||||
|
||||
if (targetObject.getId() === droppedParentId) {
|
||||
return {
|
||||
perform: function () {
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
};
|
||||
return NULL_ACTION;
|
||||
}
|
||||
|
||||
return actionCapability && actionCapability.getActions({
|
||||
|
Loading…
x
Reference in New Issue
Block a user