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,7 +1,6 @@
|
||||
import treeService from '../services/tree.js';
|
||||
import treeUtils from "../services/tree_utils.js";
|
||||
import utils from "../services/utils.js";
|
||||
import protectedSessionHolder from "../services/protected_session_holder.js";
|
||||
import messagingService from "../services/messaging.js";
|
||||
import infoService from "../services/info.js";
|
||||
|
||||
@@ -20,6 +19,8 @@ const $opmlVersions = $("#opml-versions");
|
||||
let exportId = '';
|
||||
|
||||
async function showDialog(defaultType) {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
// each opening of the dialog resets the exportId so we don't associate it with previous exports anymore
|
||||
exportId = '';
|
||||
$exportButton.removeAttr("disabled");
|
||||
|
||||
Reference in New Issue
Block a user