mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 23:28:14 +00:00
24 lines
684 B
JavaScript
24 lines
684 B
JavaScript
define([], function () {
|
|
function SaveInProgressDialog(dialogService) {
|
|
this.dialogService = dialogService;
|
|
this.dialog = undefined;
|
|
}
|
|
|
|
SaveInProgressDialog.prototype.show = function () {
|
|
this.dialog = this.dialogService.showBlockingMessage({
|
|
title: "Saving...",
|
|
hint: "Do not navigate away from this page or close this browser tab while this message is displayed.",
|
|
unknownProgress: true,
|
|
severity: "info"
|
|
});
|
|
};
|
|
|
|
SaveInProgressDialog.prototype.hide = function () {
|
|
if (this.dialog) {
|
|
this.dialog.dismiss();
|
|
}
|
|
};
|
|
|
|
return SaveInProgressDialog;
|
|
});
|