diff --git a/platform/entanglement/src/actions/CopyAction.js b/platform/entanglement/src/actions/CopyAction.js index 62ce5619ba..c7a1c14ba7 100644 --- a/platform/entanglement/src/actions/CopyAction.js +++ b/platform/entanglement/src/actions/CopyAction.js @@ -66,6 +66,7 @@ define( CopyAction.prototype.perform = function() { var self = this, notification, + dialog, notificationModel = { title: "Copying objects", unknownProgress: false, @@ -84,8 +85,8 @@ define( In the second phase, the copying is taking place, and the user is shown non-invasive banner notifications at the bottom of the screen. */ - if (phase.toLowerCase() === 'preparing'){ - self.dialogService.showBlockingMessage({ + if (phase.toLowerCase() === 'preparing' && !dialog){ + dialog = self.dialogService.showBlockingMessage({ title: "Preparing to copy objects", unknownProgress: true, severity: "info", diff --git a/platform/entanglement/src/services/CopyService.js b/platform/entanglement/src/services/CopyService.js index 710c0ef78b..53053fef8e 100644 --- a/platform/entanglement/src/services/CopyService.js +++ b/platform/entanglement/src/services/CopyService.js @@ -99,7 +99,6 @@ define( delete modelClone.model.persisted; delete modelClone.model.modified; return $q.when(originalObject.useCapability('composition')).then(function(composees){ - progress({phase: "preparing"}); return (composees || []).reduce(function(promise, composee){ //If the object is composed of other @@ -191,7 +190,7 @@ define( var $q = this.$q, deferred = $q.defer(); if (this.validate(domainObject, parent)) { - this.buildCopyPlan(domainObject, parent, deferred.notify) + this.buildCopyPlan(domainObject, parent, deferred.notify) .then(this.persistObjects(deferred.notify)) .then(this.addClonesToParent(parent, deferred.notify)) .then(deferred.resolve);