From 6f901e6852c33ba0dae6c70efb9f65e5b0028995 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 10 Mar 2021 23:11:48 +0100 Subject: [PATCH] use icons instead of plain text to differentiate between different paths in note paths widget --- src/public/app/widgets/note_paths.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/public/app/widgets/note_paths.js b/src/public/app/widgets/note_paths.js index 495dae8a8..4e6357ad3 100644 --- a/src/public/app/widgets/note_paths.js +++ b/src/public/app/widgets/note_paths.js @@ -88,7 +88,7 @@ export default class NotePathsWidget extends TabAwareWidget { .find('a') .addClass("no-tooltip-preview"); - const comments = []; + const icons = []; if (this.notePath === notePath) { $noteLink.addClass("path-current"); @@ -98,23 +98,23 @@ export default class NotePathsWidget extends TabAwareWidget { $noteLink.addClass("path-in-hoisted-subtree"); } else { - comments.push("outside of hoisting"); + icons.push(``); } if (notePathRecord.isArchived) { $noteLink.addClass("path-archived"); - comments.push("archived"); + icons.push(``); } if (notePathRecord.isSearch) { $noteLink.addClass("path-search"); - comments.push("search"); + icons.push(``); } - if (comments.length > 0) { - $noteLink.append(` (${comments.join(', ')})`); + if (icons.length > 0) { + $noteLink.append(` ${icons.join(' ')}`); } this.$notePathList.append($noteLink);