Jelajahi Sumber

HUE-8078 [search] Add clearable to new dashboard selectized list of collections

Romain Rigaux 7 tahun lalu
induk
melakukan
8294bf5

+ 1 - 1
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -72,7 +72,7 @@ from dashboard.conf import USE_GRIDSTER, HAS_REPORT_ENABLED, HAS_WIDGET_FILTER,
 
         <!-- ko if: $root.collection.engine() == 'solr' -->
         <!-- ko if: columns().length == 0 -->
-        <select data-bind="selectize: $root.initial.collections.sort(), value: $root.collection.name, disable: isSyncingCollections"></select>
+        <select data-bind="selectize: $root.initial.collections.sort(), value: $root.collection.name, disable: isSyncingCollections, selectizeOptions: { clearable: true }"></select>
 
         <label class="checkbox" style="display:inline-block; margin-left: 10px">
           <i class="fa fa-spinner fa-spin" data-bind="visible: isSyncingCollections"></i>