浏览代码

HUE-7736 [assist] Make sure filtering the file panels resets the current page

Johan Ahlen 8 年之前
父节点
当前提交
ced8231
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      desktop/core/src/desktop/static/desktop/js/assist/assistStorageEntry.js

+ 2 - 0
desktop/core/src/desktop/static/desktop/js/assist/assistStorageEntry.js

@@ -69,6 +69,8 @@ var AssistStorageEntry = (function () {
     self.filter = ko.observable('').extend({ rateLimit: 400 });
 
     self.filter.subscribe(function () {
+      self.currentPage = 1;
+      self.hasMorePages = true;
       self.loadEntries();
     });