Browse Source

HUE-7882 [dashboard] Make pretty metrics available to non-gridster dashboards too

Enrico Berti 7 years ago
parent
commit
36615ab18f

File diff suppressed because it is too large
+ 0 - 0
desktop/libs/dashboard/src/dashboard/static/dashboard/css/common_dashboard.css


+ 4 - 0
desktop/libs/dashboard/src/dashboard/static/dashboard/less/common_dashboard.less

@@ -505,6 +505,10 @@
   .edit-dimensions {
     padding: 6px;
     margin-bottom: 20px;
+    .ui-sortable {
+      min-height: 0 !important;
+      background-color: transparent !important;
+    }
     .action-icon {
       opacity: 0;
       display: inline-block;

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

@@ -2183,13 +2183,14 @@ ${ dashboard.layout_skeleton(suffix='search') }
         <!-- /ko -->
         <!-- /ko -->
 
+
         <!-- ko if: typeof $parents[0].isAdding === 'undefined' || !$parents[0].isAdding() -->
         <a href="javascript: void(0)" class="pull-right" data-bind="click: function() { $root.collection.removePivotFacetValue({'pivot_facet': $parent, 'value': $data}); }, visible: $parent.properties.facets().length > 1">
           <i class="fa fa-trash"></i> ${ _('Remove') }
         </a>
         <!-- /ko -->
         <!-- ko if: typeof $parents[0].isAdding !== 'undefined' && $parents[0].isAdding() -->
-        <a data-bind="visible: field() && field() != 'formula' || aggregate.formula(), click: function() { $root.collection.addPivotFacetValue2($parents[0]) }" class="pull-right" href="javascript:void(0)">
+        <a data-bind="visible: (typeof field !== 'undefined' && field() != 'formula') || aggregate.formula(), click: function() { $root.collection.addPivotFacetValue2($parents[0]) }" class="pull-right" href="javascript:void(0)">
           <i class="fa fa-plus"></i> ${ _('Add') }
         </a>
         <!-- /ko -->

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