Browse Source

UI: Fixed not updated view entities table, after updated values

pull/4759/head
Vladyslav_Prykhodko 5 years ago
parent
commit
248e35cb24
  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.updateTitle(true);
this.alarmsDatasource.updateAlarms(); this.alarmsDatasource.updateAlarms();
this.clearCache(); this.clearCache();
this.ctx.detectChanges();
} }
public pageLinkSortDirection(): SortDirection { public pageLinkSortDirection(): SortDirection {

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

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

Loading…
Cancel
Save