Browse Source

Fixed attribute tables pagination on switch between attributes scope

pull/5330/head
ArtemDzhereleiko 5 years ago
parent
commit
15a6b2655e
  1. 3
      ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts

3
ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts

@ -198,6 +198,7 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI
attributeScopeChanged(attributeScope: TelemetryType) {
this.attributeScope = attributeScope;
this.mode = 'default';
this.paginator.pageIndex = 0;
this.updateData(true);
}
@ -447,7 +448,7 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI
if (this.mode === 'widget') {
this.widgetsList = [];
this.widgetsListCache = [];
this.widgetsCarouselIndex = 0;
this.widgetsCarouselIndex = 0;
if (widgetsBundle) {
this.widgetsLoaded = false;
const bundleAlias = widgetsBundle.alias;

Loading…
Cancel
Save