mirror of
https://github.com/zadam/trilium.git
synced 2024-09-30 12:35:59 +08:00
29 lines
835 B
JavaScript
29 lines
835 B
JavaScript
import noteDetailService from '../services/note_detail.js';
|
|
import utils from "../services/utils.js";
|
|
|
|
const $dialog = $("#note-info-dialog");
|
|
const $noteId = $("#note-info-note-id");
|
|
const $dateCreated = $("#note-info-date-created");
|
|
const $dateModified = $("#note-info-date-modified");
|
|
const $type = $("#note-info-type");
|
|
const $mime = $("#note-info-mime");
|
|
const $okButton = $("#note-info-ok-button");
|
|
|
|
export function showDialog() {
|
|
utils.closeActiveDialog();
|
|
|
|
glob.activeDialog = $dialog;
|
|
|
|
$dialog.modal();
|
|
|
|
const activeNote = noteDetailService.getActiveTabNote();
|
|
|
|
$noteId.text(activeNote.noteId);
|
|
$dateCreated.text(activeNote.dateCreated);
|
|
$dateModified.text(activeNote.dateModified);
|
|
$type.text(activeNote.type);
|
|
$mime.text(activeNote.mime);
|
|
}
|
|
|
|
$okButton.click(() => $dialog.modal('hide'));
|