mirror of https://github.com/keeweb/keeweb
dropdown hint option
parent
e568d06b02
commit
48a6189fe7
|
@ -137,15 +137,15 @@ class ListSearchView extends View {
|
|||
this.sortOptions.forEach(opt => {
|
||||
opt.html = opt.loc();
|
||||
});
|
||||
const entryDesc = Features.isMobile
|
||||
? ''
|
||||
: ' <span class="muted-color">(' +
|
||||
Locale.searchShiftClickOr +
|
||||
' ' +
|
||||
Shortcuts.altShortcutSymbol(true) +
|
||||
'N)</span>';
|
||||
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) {
|
||||
|
|
|
@ -3,10 +3,9 @@
|
|||
<div class="dropdown__item {{#if option.active}}dropdown__item--active{{/if}}" data-value="{{option.value}}">
|
||||
<i class="fa fa-{{option.icon}} dropdown__item-icon"></i>
|
||||
<span class="dropdown__item-text">
|
||||
{{~#if option.text~}}
|
||||
{{option.text}}
|
||||
{{~else~}}
|
||||
{{{option.html}}}
|
||||
{{option.text}}
|
||||
{{~#if option.hint~}}
|
||||
<span class="muted-color">{{option.hint}}</span>
|
||||
{{~/if~}}
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue