From 48a6189fe7735278872fe548fbb428c4b16033f9 Mon Sep 17 00:00:00 2001 From: antelle Date: Thu, 23 Apr 2020 19:12:15 +0200 Subject: [PATCH] dropdown hint option --- app/scripts/views/list-search-view.js | 16 ++++++++-------- app/templates/dropdown.hbs | 7 +++---- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/app/scripts/views/list-search-view.js b/app/scripts/views/list-search-view.js index b12dafff..46cc7a3f 100644 --- a/app/scripts/views/list-search-view.js +++ b/app/scripts/views/list-search-view.js @@ -137,15 +137,15 @@ class ListSearchView extends View { this.sortOptions.forEach(opt => { opt.html = opt.loc(); }); - const entryDesc = Features.isMobile - ? '' - : ' (' + - Locale.searchShiftClickOr + - ' ' + - Shortcuts.altShortcutSymbol(true) + - 'N)'; this.createOptions = [ - { value: 'entry', icon: 'key', html: StringFormat.capFirst(Locale.entry) + entryDesc }, + { + value: 'entry', + icon: 'key', + text: StringFormat.capFirst(Locale.entry), + hint: Features.isMobile + ? null + : `(${Locale.searchShiftClickOr} ${Shortcuts.altShortcutSymbol(true)})` + }, { value: 'group', icon: 'folder', text: StringFormat.capFirst(Locale.group) } ]; if (this.el) { diff --git a/app/templates/dropdown.hbs b/app/templates/dropdown.hbs index b7577b21..d2581f67 100644 --- a/app/templates/dropdown.hbs +++ b/app/templates/dropdown.hbs @@ -3,10 +3,9 @@