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

UI: Fixed not updated view entities table widget, after updated values
This commit is contained in:
Igor Kulikov 2021-06-18 16:38:50 +03:00 committed by GitHub
commit 7ae3eea216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -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 {