mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	close currently active dialog if a different one is activated
This commit is contained in:
		| @@ -1,3 +1,5 @@ | ||||
| import utils from "../services/utils.js"; | ||||
|  | ||||
| const $dialog = $("#prompt-dialog"); | ||||
| const $dialogBody = $dialog.find(".modal-body"); | ||||
|  | ||||
| @@ -10,6 +12,8 @@ let resolve; | ||||
| let shownCb; | ||||
|  | ||||
| function ask({ message, defaultValue, shown }) { | ||||
|     utils.closeActiveDialog(); | ||||
|  | ||||
|     glob.activeDialog = $dialog; | ||||
|  | ||||
|     shownCb = shown; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user