@smartbit4all/ng-client 3.3.212 → 3.3.214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7912,7 +7912,7 @@ class UiActionInputDialogComponent {
7912
7912
  return this.descriptor[this.dialogType].actionButton;
7913
7913
  }
7914
7914
  getCancelButton() {
7915
- return this.descriptor[this.dialogType].actionButton;
7915
+ return this.descriptor[this.dialogType].cancelButton;
7916
7916
  }
7917
7917
  constructForm() {
7918
7918
  let model = {};
@@ -8056,7 +8056,7 @@ class UiActionConfirmDialogComponent {
8056
8056
  return this.descriptor[this.dialogType].actionButton;
8057
8057
  }
8058
8058
  getCancelButton() {
8059
- return this.descriptor[this.dialogType].actionButton;
8059
+ return this.descriptor[this.dialogType].cancelButton;
8060
8060
  }
8061
8061
  doAction() {
8062
8062
  this.service.doAction();
@@ -13521,6 +13521,15 @@ class SmartComponentLayoutComponent {
13521
13521
  this.uuid = this.parentSmartComponent.uuid;
13522
13522
  this.treeService = this.parentSmartComponent.smartTreeService;
13523
13523
  this.smartComponentLayout?.direction;
13524
+ // the nature of the layout might have changed (e.g. from GRID to FORM), we null out every
13525
+ // template-related element, so no stale data is left on screen:
13526
+ this.expandableSection = undefined;
13527
+ this.smartForm = undefined;
13528
+ this.smartGrid = undefined;
13529
+ this.smartFilter = undefined;
13530
+ this.smartGrid = undefined;
13531
+ this.toolbarId = undefined;
13532
+ // null out toolbar?
13524
13533
  if (this.smartComponentLayout?.expandable) {
13525
13534
  this.constructExpandableSection();
13526
13535
  }