]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Reduce number of triggers when search not empty 28315/head
authorTiago Melo <tmelo@suse.com>
Wed, 8 May 2019 15:50:36 +0000 (15:50 +0000)
committerTiago Melo <tmelo@suse.com>
Thu, 30 May 2019 12:14:39 +0000 (12:14 +0000)
Fixes: http://tracker.ceph.com/issues/39944
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 2e3a402e72ad14b7bada186657c1d3f18fa2b447)

src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts

index 64a2c33e647e6a4ff330dc8391f8c14db4d0fe48..0fc351b610a3f80c38cc63824a7c32f76f6ab9dc 100644 (file)
@@ -394,9 +394,10 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O
     if (!this.data) {
       return; // Wait for data
     }
-    this.rows = [...this.data];
     if (this.search.length > 0) {
       this.updateFilter();
+    } else {
+      this.rows = [...this.data];
     }
     this.reset();
     this.updateSelected();