mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 07:08:12 +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:
@ -26,6 +26,12 @@ define(
|
|||||||
function () {
|
function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
var NULL_ACTION = {
|
||||||
|
perform: function () {
|
||||||
|
return Promise.resolve(true);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles drop (from drag-and-drop) initiated changes to a swimlane.
|
* Handles drop (from drag-and-drop) initiated changes to a swimlane.
|
||||||
* @constructor
|
* @constructor
|
||||||
@ -119,11 +125,7 @@ define(
|
|||||||
droppedParentId = droppedParent && droppedParent.getId();
|
droppedParentId = droppedParent && droppedParent.getId();
|
||||||
|
|
||||||
if (targetObject.getId() === droppedParentId) {
|
if (targetObject.getId() === droppedParentId) {
|
||||||
return {
|
return NULL_ACTION;
|
||||||
perform: function () {
|
|
||||||
return Promise.resolve(true);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return actionCapability && actionCapability.getActions({
|
return actionCapability && actionCapability.getActions({
|
||||||
|
Reference in New Issue
Block a user