Commit 7ae3eea2160cf4d653f6ccede76eb47b2e1ed409
Committed by
GitHub
Merge pull request #4759 from vvlladd28/bugs/entities-table-widgets/detect-changes
UI: Fixed not updated view entities table widget, after updated values
Showing
2 changed files
with
2 additions
and
1 deletions
@@ -274,6 +274,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, | @@ -274,6 +274,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, | ||
274 | this.updateTitle(true); | 274 | this.updateTitle(true); |
275 | this.alarmsDatasource.updateAlarms(); | 275 | this.alarmsDatasource.updateAlarms(); |
276 | this.clearCache(); | 276 | this.clearCache(); |
277 | + this.ctx.detectChanges(); | ||
277 | } | 278 | } |
278 | 279 | ||
279 | public pageLinkSortDirection(): SortDirection { | 280 | public pageLinkSortDirection(): SortDirection { |
@@ -47,7 +47,6 @@ import { | @@ -47,7 +47,6 @@ import { | ||
47 | isDefined, | 47 | isDefined, |
48 | isNumber, | 48 | isNumber, |
49 | isObject, | 49 | isObject, |
50 | - isString, | ||
51 | isUndefined | 50 | isUndefined |
52 | } from '@core/utils'; | 51 | } from '@core/utils'; |
53 | import cssjs from '@core/css/css'; | 52 | import cssjs from '@core/css/css'; |
@@ -236,6 +235,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni | @@ -236,6 +235,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni | ||
236 | this.updateTitle(true); | 235 | this.updateTitle(true); |
237 | this.entityDatasource.dataUpdated(); | 236 | this.entityDatasource.dataUpdated(); |
238 | this.clearCache(); | 237 | this.clearCache(); |
238 | + this.ctx.detectChanges(); | ||
239 | } | 239 | } |
240 | 240 | ||
241 | public pageLinkSortDirection(): SortDirection { | 241 | public pageLinkSortDirection(): SortDirection { |