Browse Source

HUE-7949 [dashboard] Always show dimensions when in Query Builder mode

Enrico Berti 7 years ago
parent
commit
9b34dc0

File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue-embedded.css


File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 3 - 0
desktop/core/src/desktop/static/desktop/less/components/hue-gridster.less

@@ -33,6 +33,9 @@
       .grid-left-bar, .edit-dimensions {
         opacity: 0;
         .hue-ease-transition(opacity);
+        &.query-builder {
+          opacity: 1;
+        }
       }
     }
     & > li:hover {

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

@@ -599,7 +599,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
   <!-- /ko -->
 
   <!-- ko if: !$parents[1].isLoading() || widgetType() == 'hit-widget' -->
-  <div class="edit-dimensions">
+  <div class="edit-dimensions" data-bind="css: { 'query-builder': $root.isQueryBuilder }">
     <div data-bind="sortable: { data: properties.facets, allowDrop: false, options: { axis: 'x', containment: 'parent', handle: '.move-dimension'}}" class="inline-block">
       <div class="badge dimensions-badge-container" data-bind="css: { 'is-editing': isEditing }, click: function(){ $parent.isAdding(false); $parent.properties.facets().forEach(function(f){ f.isEditing(false); }); isEditing(true); }" title="${ _('Edit') }">
         <span data-bind="text: getPrettyMetric($data)"></span>

Some files were not shown because too many files changed in this diff