created note info dialog, closes #408

This commit is contained in:
zadam
2019-02-14 20:56:33 +01:00
parent dad47d115f
commit 2a2319d434
6 changed files with 82 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
import noteDetailService from '../services/note_detail.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");
function showDialog() {
glob.activeDialog = $dialog;
$dialog.modal();
const currentNote = noteDetailService.getCurrentNote();
$noteId.text(currentNote.noteId);
$dateCreated.text(currentNote.dateCreated);
$dateModified.text(currentNote.dateModified);
$type.text(currentNote.type);
$mime.text(currentNote.mime);
}
$okButton.click(() => $dialog.modal('hide'));
export default {
showDialog
};