Преглед на файлове

HUE-8121 [dashboard] Delete widget should be always available

Enrico Berti преди 7 години
родител
ревизия
6343526c9e
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      desktop/core/src/desktop/templates/common_dashboard.mako

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

@@ -212,7 +212,7 @@
     <div class="empty-gridster-widget card card-widget" data-bind="draggable: { data: $data, isEnabled: $root.isGridster() && !$root.isQueryBuilder(), options: getDraggableOptions({ data: $data, parent: $data }) }">
       <h2 class="card-heading simple" title="${ _('Drag to move') }">
         ${ _('Empty widget') }
-        <div class="inline pull-right margin-right-10" data-bind="visible: ($root.isEditing() || $root.isToolbarVisible()) && !$root.isQueryBuilder()">
+        <div class="inline pull-right margin-right-10" data-bind="visible: !$root.isQueryBuilder()">
           <a href="javascript:void(0)" class="remove-widget" data-bind="publish: { 'gridster.remove': $data }"><i class="fa fa-times"></i></a>
         </div>
       </h2>
@@ -302,7 +302,7 @@
       <!-- ko if: typeof $root.collection == 'undefined' || $root.collection.getFacetById(id()) == null -->
         <span data-bind="editable: name, editableOptions: { enabled: true, placement: 'right' }" title="${ _('Click to change the widget title') }"></span>
       <!-- /ko -->
-      <div class="inline pull-right margin-right-10" data-bind="visible: ($root.isEditing() || $root.isToolbarVisible()) && !$root.isQueryBuilder()">
+      <div class="inline pull-right margin-right-10" data-bind="visible: !$root.isQueryBuilder()">
         <a href="javascript:void(0)" class="remove-widget" data-bind="click: $root.removeWidget"><i class="fa fa-times"></i></a>
       </div>
     </h2>