Эх сурвалжийг харах

HUE-3294 [assist] Friendlier search placeholder

Romain Rigaux 9 жил өмнө
parent
commit
942321a

+ 2 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -1148,7 +1148,8 @@ from metadata.conf import has_navigator
         hasFocus: searchHasFocus,
         clearable: { value: searchInput, onClear: function () { searchActive(false); huePubSub.publish('autocomplete.close'); } },
         textInput: searchInput,
-        valueUpdate: 'afterkeydown'">
+        valueUpdate: 'afterkeydown',
+        attr: { placeholder: '${ _('Search ') }' + $parent.name.replace(/s$/g, '') + ($parent.type == 'sql' ? '${ _(' tables') }' : '${ _(' files') }' ) + '...' }">
         <a class="inactive-action" data-bind="click: performSearch"><i class="fa fa-search" data-bind="css: { 'blue': searchHasFocus() || searchActive() }"></i></a>
       </div>
     <!-- /ko -->

+ 3 - 0
desktop/core/src/desktop/templates/responsive.mako

@@ -161,6 +161,9 @@ ${ hueIcons.symbols() }
 
   <div class="content-wrapper">
     <div class="left-nav">
+      Home</br>
+      </br>
+
       <a href="javascript:void(0);" data-bind="click: function () { huePubSub.publish('switch.app', 'editor'); }">Query</a><br/>
       <br/>
       [Hive, Impala, Pig, PySpark, Solr, MapReduce...]<br/>