mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
link router/loading
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
import server from '../services/server.js';
|
||||
import noteDetailService from "../services/note_detail.js";
|
||||
|
||||
const $dialog = $("#link-map-dialog");
|
||||
|
||||
async function showDialog() {
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
const noteId = noteDetailService.getActiveNoteId();
|
||||
|
||||
const links = await server.get(`notes/${noteId}/links`);
|
||||
|
||||
console.log(links);
|
||||
|
||||
$dialog.modal();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user