mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
display note type only for non-search notes
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
id="execute-script-button"
|
||||
onclick="noteEditor.executeCurrentNote()">Execute <kbd>Ctrl+Enter</kbd></button>
|
||||
|
||||
<div class="dropdown" id="note-type">
|
||||
<div class="dropdown" id="note-type" data-bind="visible: type() != 'search'">
|
||||
<button data-bind="disable: isDisabled()" id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm">
|
||||
Type: <span data-bind="text: typeString()"></span>
|
||||
<span class="caret"></span>
|
||||
@@ -106,8 +106,6 @@
|
||||
<ul id="note-type-dropdown" class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
|
||||
<li data-bind="click: selectText, css: { selected: type() == 'text' }"><span class="check">✓</span> <strong>Text</strong></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li data-bind="click: selectSavedSearch, css: { selected: type() == 'search' }"><span class="check">✓</span> <strong>Saved search</strong></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li data-bind="click: selectRender, css: { selected: type() == 'render' && mime() == '' }"><span class="check">✓</span> <strong>Render HTML note</strong></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li data-bind="click: selectCode, css: { selected: type() == 'code' && mime() == '' }"><span class="check">✓</span> <strong>Code</strong></li>
|
||||
|
||||
Reference in New Issue
Block a user