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

@@ -275,8 +275,8 @@ async function updateNote(noteId, noteUpdates) {
throw new Error(`Note ${noteId} is not available for change!`);
}
if (note.type === 'file') {
// for update file, newNote doesn't contain file payloads
if (note.type === 'file' || note.type === 'image') {
// files and images are immutable, they can't be updated
noteUpdates.content = note.content;
}