trilium/src/public/javascripts/dialogs/link_map.js

20 lines
411 B
JavaScript
Raw Normal View History

2019-06-02 23:12:18 +08:00
import server from '../services/server.js';
import noteDetailService from "../services/note_detail.js";
2019-06-02 21:35:57 +08:00
const $dialog = $("#link-map-dialog");
async function showDialog() {
glob.activeDialog = $dialog;
2019-06-02 23:12:18 +08:00
const noteId = noteDetailService.getActiveNoteId();
const links = await server.get(`notes/${noteId}/links`);
console.log(links);
2019-06-02 21:35:57 +08:00
$dialog.modal();
}
export default {
showDialog
};