X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fsrc%2Fapp%2Fshared%2Fcomponents%2Fnotifications-sidebar%2Fnotifications-sidebar.component.ts;h=5a0f9b603e9e82044a03a436bd4bf0be84d9e350;hb=f6b5b4d738b87d88d2de35127b6b0e41eae2a272;hp=0fdde25b6dc88f60e7db6c837157b05c11756541;hpb=12732ca2e80d168d344a265acffc1fbd1fa1f1b5;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.ts b/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.ts index 0fdde25b6..5a0f9b603 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.ts @@ -108,15 +108,12 @@ export class NotificationsSidebarComponent implements OnInit, OnDestroy { ); this.subs.add( - this.summaryService.subscribe((data: any) => { - if (!data) { - return; - } - this._handleTasks(data.executing_tasks); + this.summaryService.subscribe((summary) => { + this._handleTasks(summary.executing_tasks); this.mutex.acquire().then((release) => { _.filter( - data.finished_tasks, + summary.finished_tasks, (task: FinishedTask) => !this.last_task || moment(task.end_time).isAfter(this.last_task) ).forEach((task) => { const config = this.notificationService.finishedTaskToNotification(task, task.success);