image notes can't be updated + minor visual tweaks

This commit is contained in:
azivner
2018-11-15 14:33:02 +01:00
parent 6749cbed1b
commit 39b3c91abf
6 changed files with 22 additions and 8 deletions

View File

@@ -21,8 +21,8 @@ async function show() {
$component.show();
$fileName.text(attributeMap.originalFileName);
$fileSize.text(attributeMap.fileSize + " bytes");
$fileName.text(attributeMap.originalFileName || "?");
$fileSize.text((attributeMap.fileSize || "?") + " bytes");
$fileType.text(currentNote.mime);
$imageView.prop("src", `/api/images/${currentNote.noteId}/${currentNote.title}`);