mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
close currently active dialog if a different one is activated
This commit is contained in:
@@ -194,6 +194,12 @@ function getMimeTypeClass(mime) {
|
||||
return 'mime-' + mime.toLowerCase().replace(/[\W_]+/g,"-");
|
||||
}
|
||||
|
||||
function closeActiveDialog() {
|
||||
if (glob.activeDialog) {
|
||||
glob.activeDialog.modal('hide');
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
reloadApp,
|
||||
parseDate,
|
||||
@@ -223,5 +229,6 @@ export default {
|
||||
setSessionCookie,
|
||||
getCookie,
|
||||
getNoteTypeClass,
|
||||
getMimeTypeClass
|
||||
getMimeTypeClass,
|
||||
closeActiveDialog
|
||||
};
|
||||
Reference in New Issue
Block a user