mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 12:03:21 +00:00
Fixed blocking dialog
This commit is contained in:
parent
05481dcab5
commit
4e69ca50fb
@ -66,6 +66,7 @@ define(
|
|||||||
CopyAction.prototype.perform = function() {
|
CopyAction.prototype.perform = function() {
|
||||||
var self = this,
|
var self = this,
|
||||||
notification,
|
notification,
|
||||||
|
dialog,
|
||||||
notificationModel = {
|
notificationModel = {
|
||||||
title: "Copying objects",
|
title: "Copying objects",
|
||||||
unknownProgress: false,
|
unknownProgress: false,
|
||||||
@ -84,8 +85,8 @@ define(
|
|||||||
In the second phase, the copying is taking place, and the user
|
In the second phase, the copying is taking place, and the user
|
||||||
is shown non-invasive banner notifications at the bottom of the screen.
|
is shown non-invasive banner notifications at the bottom of the screen.
|
||||||
*/
|
*/
|
||||||
if (phase.toLowerCase() === 'preparing'){
|
if (phase.toLowerCase() === 'preparing' && !dialog){
|
||||||
self.dialogService.showBlockingMessage({
|
dialog = self.dialogService.showBlockingMessage({
|
||||||
title: "Preparing to copy objects",
|
title: "Preparing to copy objects",
|
||||||
unknownProgress: true,
|
unknownProgress: true,
|
||||||
severity: "info",
|
severity: "info",
|
||||||
|
@ -99,7 +99,6 @@ define(
|
|||||||
delete modelClone.model.persisted;
|
delete modelClone.model.persisted;
|
||||||
delete modelClone.model.modified;
|
delete modelClone.model.modified;
|
||||||
return $q.when(originalObject.useCapability('composition')).then(function(composees){
|
return $q.when(originalObject.useCapability('composition')).then(function(composees){
|
||||||
|
|
||||||
progress({phase: "preparing"});
|
progress({phase: "preparing"});
|
||||||
return (composees || []).reduce(function(promise, composee){
|
return (composees || []).reduce(function(promise, composee){
|
||||||
//If the object is composed of other
|
//If the object is composed of other
|
||||||
|
Loading…
x
Reference in New Issue
Block a user