]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Reduce number of triggers when search not empty 28118/head
authorTiago Melo <tmelo@suse.com>
Wed, 8 May 2019 15:50:36 +0000 (15:50 +0000)
committerTiago Melo <tmelo@suse.com>
Tue, 21 May 2019 13:05:52 +0000 (13:05 +0000)
Fixes: http://tracker.ceph.com/issues/39944
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts

index 8d6295f3b427489374bea6cfc4025c8b58610cb3..9539aa95550c67d389435ca1ad7eda5199ff15ea 100644 (file)
@@ -404,9 +404,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();