use note size format also in file properties

This commit is contained in:
zadam
2023-06-02 16:05:02 +02:00
parent a6ade790c6
commit 7e71029d1c
4 changed files with 25 additions and 16 deletions

View File

@@ -136,7 +136,7 @@ export default class FilePropertiesWidget extends NoteContextAwareWidget {
const noteComplement = await this.noteContext.getNoteComplement();
this.$fileSize.text(`${noteComplement.contentLength} bytes`);
this.$fileSize.text(utils.formatNoteSize(noteComplement.contentLength));
// open doesn't work for protected notes since it works through browser which isn't in protected session
this.$openButton.toggle(!note.isProtected);