Browse Source

Update attribute-table.component.ts

pull/5170/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
909c8801c5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts

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

@ -443,14 +443,13 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI
}
onWidgetsBundleChanged(widgetsBundle: WidgetsBundle) {
this.widgetBundleSet = !!widgetsBundle;
if (this.mode === 'widget') {
this.widgetsList = [];
this.widgetsListCache = [];
this.widgetsCarouselIndex = 0;
this.widgetBundleSet = false;
this.widgetsCarouselIndex = 0;
if (widgetsBundle) {
this.widgetsLoaded = false;
this.widgetBundleSet = true;
const bundleAlias = widgetsBundle.alias;
const isSystem = widgetsBundle.tenantId.id === NULL_UUID;
this.widgetService.getBundleWidgetTypes(bundleAlias, isSystem).subscribe(
@ -515,7 +514,6 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI
exitWidgetMode() {
this.selectedWidgetsBundleAlias = null;
this.widgetBundleSet = false;
this.mode = 'default';
}

Loading…
Cancel
Save