Commit 15a6b2655e34e135479926b7a1c1eba4c84254d9
1 parent
75817a16
Fixed attribute tables pagination on switch between attributes scope
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -198,6 +198,7 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI | @@ -198,6 +198,7 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI | ||
198 | attributeScopeChanged(attributeScope: TelemetryType) { | 198 | attributeScopeChanged(attributeScope: TelemetryType) { |
199 | this.attributeScope = attributeScope; | 199 | this.attributeScope = attributeScope; |
200 | this.mode = 'default'; | 200 | this.mode = 'default'; |
201 | + this.paginator.pageIndex = 0; | ||
201 | this.updateData(true); | 202 | this.updateData(true); |
202 | } | 203 | } |
203 | 204 | ||
@@ -447,7 +448,7 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI | @@ -447,7 +448,7 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI | ||
447 | if (this.mode === 'widget') { | 448 | if (this.mode === 'widget') { |
448 | this.widgetsList = []; | 449 | this.widgetsList = []; |
449 | this.widgetsListCache = []; | 450 | this.widgetsListCache = []; |
450 | - this.widgetsCarouselIndex = 0; | 451 | + this.widgetsCarouselIndex = 0; |
451 | if (widgetsBundle) { | 452 | if (widgetsBundle) { |
452 | this.widgetsLoaded = false; | 453 | this.widgetsLoaded = false; |
453 | const bundleAlias = widgetsBundle.alias; | 454 | const bundleAlias = widgetsBundle.alias; |