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

Loading…
Cancel
Save