mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
close currently active dialog if a different one is activated
This commit is contained in:
@@ -3,6 +3,7 @@ import noteDetailService from "../services/note_detail.js";
|
||||
import libraryLoader from "../services/library_loader.js";
|
||||
import treeCache from "../services/tree_cache.js";
|
||||
import linkService from "../services/link.js";
|
||||
import utils from "../services/utils.js";
|
||||
|
||||
const $linkMapContainer = $("#link-map-container");
|
||||
|
||||
@@ -26,6 +27,8 @@ let pzInstance = null;
|
||||
let renderer = null;
|
||||
|
||||
async function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
// set default settings
|
||||
|
||||
Reference in New Issue
Block a user