 c6f83dea8d
			
		
	
	c6f83dea8d
	
	
	
		
			
			* Save and Finish blocking modal dialog Refactor and Styles #2500 * created new template for ProgressDialogComponent * Tweaks for #2501 - Normalized dialog icon size; - Enhanced text formatting in dialog; - Changed "Saving..." to remove ellipsis;
		
			
				
	
	
		
			25 lines
		
	
	
		
			706 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			706 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",
 | |
|             delay: true
 | |
|         });
 | |
|     };
 | |
| 
 | |
|     SaveInProgressDialog.prototype.hide = function () {
 | |
|         if (this.dialog) {
 | |
|             this.dialog.dismiss();
 | |
|         }
 | |
|     };
 | |
| 
 | |
|     return SaveInProgressDialog;
 | |
| });
 |