From: Tiago Melo Date: Thu, 27 Aug 2020 17:31:48 +0000 (+0000) Subject: mgr/dashboard: Fix stale table actions X-Git-Tag: v16.1.0~1275^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36859%2Fhead;p=ceph.git mgr/dashboard: Fix stale table actions If we don't emit the select event, the action button can become stale and not update when the data changes. This fixes a regression introduced in 31e9bbb9b308277d2f89390d5ff62f13457d69cb Fixes: https://tracker.ceph.com/issues/47175 Signed-off-by: Tiago Melo --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts index 59911fba2cb4..51e6a317105e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts @@ -700,8 +700,8 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O // https://github.com/swimlane/ngx-datatable/issues/899 if (_.has($event, 'selected')) { this.selection.selected = $event['selected']; - this.updateSelection.emit(_.clone(this.selection)); } + this.updateSelection.emit(_.clone(this.selection)); } toggleColumn(column: CdTableColumn) {