Browse Source

HUE-7650 [dashboard] Remove widget resize and move icons on Gridster mode

Enrico Berti 8 năm trước cách đây
mục cha
commit
bb9367e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      desktop/core/src/desktop/templates/common_dashboard.mako

+ 2 - 0
desktop/core/src/desktop/templates/common_dashboard.mako

@@ -278,12 +278,14 @@
 <script type="text/html" id="widget-template${ suffix }">
   <div data-bind="attr: {'id': 'wdg_'+ id(),}, css: klass, droppable: { data: function() { $root.collection.dropOnWidget(id()) }, options:{ greedy:true }}">
     <h2 class="card-heading simple">
+      %if not USE_GRIDSTER.get():
       <span data-bind="visible: $root.isEditing">
         <a href="javascript:void(0)" class="move-widget"><i class="fa fa-arrows"></i></a>
         <a href="javascript:void(0)" data-bind="click: compress, visible: size() > 1"><i class="fa fa-step-backward"></i></a>
         <a href="javascript:void(0)" data-bind="click: expand, visible: size() < 12"><i class="fa fa-step-forward"></i></a>
         &nbsp;
       </span>
+      %endif
       <!-- ko if: $root.collection && $root.collection.getFacetById(id()) -->
       <span data-bind="with: $root.collection.getFacetById(id())">
         <span data-bind="editable: label, editableOptions: {enabled: $root.isEditing(), placement: 'right'}"></span>