mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -110,7 +110,7 @@ export default class NoteInfoWidget extends NoteContextAwareWidget {
|
||||
const subTreeResp = await server.get(`stats/subtree-size/${this.noteId}`);
|
||||
|
||||
if (subTreeResp.subTreeNoteCount > 1) {
|
||||
this.$subTreeSize.text("(subtree size: " + this.formatSize(subTreeResp.subTreeSize) + ` in ${subTreeResp.subTreeNoteCount} notes)`);
|
||||
this.$subTreeSize.text(`(subtree size: ${this.formatSize(subTreeResp.subTreeSize)} in ${subTreeResp.subTreeNoteCount} notes)`);
|
||||
}
|
||||
else {
|
||||
this.$subTreeSize.text("");
|
||||
@@ -133,7 +133,7 @@ export default class NoteInfoWidget extends NoteContextAwareWidget {
|
||||
this.$type.text(note.type);
|
||||
|
||||
if (note.mime) {
|
||||
this.$mime.text('(' + note.mime + ')');
|
||||
this.$mime.text(`(${note.mime})`);
|
||||
}
|
||||
else {
|
||||
this.$mime.empty();
|
||||
|
||||
Reference in New Issue
Block a user