Save and Finish no longer shows blocking modal dialog #2496 (#2498)

This commit is contained in:
Nikhil 2019-09-19 18:16:41 -07:00 committed by Andrew Henry
parent ee690545fb
commit 71abfbc336

View File

@ -127,9 +127,16 @@ const PLACEHOLDER_OBJECT = {};
}
},
saveAndFinishEditing() {
let dialog = this.openmct.overlays.progressDialog({
progressPerc: 'unknown',
progressText: 'Saving...',
});
return this.openmct.editor.save().then(()=> {
dialog.dismiss();
this.openmct.notifications.info('Save successful');
}).catch((error) => {
dialog.dismiss();
this.openmct.notifications.error('Error saving objects');
console.error(error);
});