فهرست منبع

[search] Missing remove call on widget

Deleting a widget was not removing it from the model
Romain Rigaux 11 سال پیش
والد
کامیت
a0a8370
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 0 1
      apps/search/src/search/templates/search.mako
  2. 1 1
      desktop/core/src/desktop/templates/common_dashboard.mako

+ 0 - 1
apps/search/src/search/templates/search.mako

@@ -1224,7 +1224,6 @@ $(document).ready(function () {
       addFacetDemiModalFieldCancel();
     }
   });
-
 });
 
   function showShareModal() {

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

@@ -163,7 +163,7 @@
         <span data-bind="editable: name, editableOptions: {enabled: $root.isEditing(), placement: 'right'}"></span>
       <!-- /ko -->
       <div class="inline pull-right" data-bind="visible: $root.isEditing">
-        <a href="javascript:void(0)" data-bind="click: function(){remove($parent, this)}"><i class="fa fa-times"></i></a>
+        <a href="javascript:void(0)" data-bind="click: $root.removeWidget"><i class="fa fa-times"></i></a>
       </div>
     </h2>
     <div class="card-body" style="padding: 5px;">