mirror of
https://github.com/nasa/openmct.git
synced 2025-02-18 16:40:58 +00:00
parent
ee690545fb
commit
71abfbc336
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user