[home] Avoid search blinking
@@ -630,11 +630,11 @@ from desktop.views import _ko
</ul>
</div>
</h4>
- <!-- ko with: activeEntry -->
- <div class="doc-browser-folder-actions" data-bind="visible: ! hasErrors()">
- <!-- ko if: $parent.searchVisible -->
- <div class="doc-browser-action doc-browser-search-container"><input class="clearable" type="text" placeholder="${ _('Search for name, description, etc...') }" data-bind="hasFocus: $parent.searchFocus, textInput: $parent.searchQuery, clearable: $parent.searchQuery"></div>
+ <div class="doc-browser-folder-actions" data-bind="visible: activeEntry && !activeEntry().hasErrors()">
+ <!-- ko if: searchVisible -->
+ <div class="doc-browser-action doc-browser-search-container"><input class="clearable" type="text" placeholder="${ _('Search for name, description, etc...') }" data-bind="hasFocus: searchFocus, textInput: searchQuery, clearable: searchQuery"></div>
<!-- /ko -->
+ <!-- ko with: activeEntry -->
<div><a class="inactive-action doc-browser-action" title="${_('Search')}" href="javascript:void(0);" data-bind="tooltip: { placement: 'bottom', delay: 750 }, toggle: $parent.searchVisible, click: function () { $parent.searchFocus($parent.searchVisible()) }, css: { 'blue' : ($parent.searchVisible() || $parent.searchQuery()) }"><i class="fa fa-fw fa-search"></i></a></div>
<!-- ko if: app === 'documents' -->
<div>
@@ -731,9 +731,9 @@ from desktop.views import _ko
</ul>
</div>
<!-- /ko -->
- </div>
<!-- /ko -->
</div>
+ </div>
<!-- ko with: activeEntry -->
<!-- ko if: entries().length > 0 -->
