|
|
|
@ -324,6 +324,15 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, |
|
|
|
if (this.displayPagination) { |
|
|
|
this.sort.sortChange.pipe(takeUntil(this.destroy$)).subscribe(() => this.paginator.pageIndex = 0); |
|
|
|
|
|
|
|
this.ctx.aliasController?.entityAliasesChanged.pipe( |
|
|
|
takeUntil(this.destroy$) |
|
|
|
).subscribe((aliasIds) => { |
|
|
|
let currentEntityAliasId = this.ctx.defaultSubscription.options.alarmSource?.entityAliasId; |
|
|
|
if (currentEntityAliasId && aliasIds.includes(currentEntityAliasId)) { |
|
|
|
this.paginator.firstPage(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.ctx.aliasController?.filtersChanged.pipe( |
|
|
|
takeUntil(this.destroy$) |
|
|
|
).subscribe((filters) => { |
|
|
|
|