Browse Source

Merge pull request #4759 from vvlladd28/bugs/entities-table-widgets/detect-changes

UI: Fixed not updated view entities table widget, after updated values
pull/4772/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
7ae3eea216
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.ts
  2. 2
      ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.ts

1
ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.ts

@ -274,6 +274,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit,
this.updateTitle(true);
this.alarmsDatasource.updateAlarms();
this.clearCache();
this.ctx.detectChanges();
}
public pageLinkSortDirection(): SortDirection {

2
ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.ts

@ -47,7 +47,6 @@ import {
isDefined,
isNumber,
isObject,
isString,
isUndefined
} from '@core/utils';
import cssjs from '@core/css/css';
@ -236,6 +235,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni
this.updateTitle(true);
this.entityDatasource.dataUpdated();
this.clearCache();
this.ctx.detectChanges();
}
public pageLinkSortDirection(): SortDirection {

Loading…
Cancel
Save