do not show warning dialog when user moves an object from one location to another (#2142)

* dont show error dialog when user moves an object from one location to another

* add test for not showing blocking message on remove action

Fixes #2141
This commit is contained in:
Deep Tailor
2018-08-10 10:06:40 -07:00
committed by Pete Richards
parent 37dd4856a6
commit 33a4792531
5 changed files with 32 additions and 14 deletions

View File

@@ -102,14 +102,14 @@ define(
* @returns {Action[]} an array of matching actions
* @memberof platform/core.ActionCapability#
*/
ActionCapability.prototype.perform = function (context) {
ActionCapability.prototype.perform = function (context, flag) {
// Alias to getActions(context)[0].perform, with a
// check for empty arrays.
var actions = this.getActions(context);
return this.$q.when(
(actions && actions.length > 0) ?
actions[0].perform() :
actions[0].perform(flag) :
undefined
);
};