@smartbit4all/ng-client 3.3.172 → 3.3.174

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.
@@ -5176,6 +5176,9 @@ class UiActionToolbarComponent {
5176
5176
  }
5177
5177
  this.setUp();
5178
5178
  }
5179
+ ngAfterViewInit() {
5180
+ this.changeDetector.detectChanges();
5181
+ }
5179
5182
  ngOnChanges(changes) {
5180
5183
  if (changes['uiActionModels']) {
5181
5184
  let uiActionModels = changes['uiActionModels'].currentValue;
@@ -15444,17 +15447,24 @@ class SmartComponentApiClient {
15444
15447
  actionModel.push(action);
15445
15448
  });
15446
15449
  this.uiActionModels = globalUiActionModels;
15447
- Promise.all(toolbars.map((toolbar) => {
15450
+ toolbars.forEach(async (toolbar) => {
15448
15451
  toolbar.uiActionModels = toolbarModels.get(toolbar.id);
15449
- return toolbar.setUp();
15450
- }))
15451
- .then(() => {
15452
- // continue code here if needed
15453
- this.changeDetector?.detectChanges();
15454
- })
15455
- .catch((error) => {
15456
- console.error('An error occurred during toolbar setup:', error);
15452
+ await toolbar.setUp();
15457
15453
  });
15454
+ this.changeDetector?.detectChanges();
15455
+ // Promise.all(
15456
+ // toolbars.map((toolbar) => {
15457
+ // toolbar.uiActionModels = toolbarModels.get(toolbar.id!);
15458
+ // return toolbar.setUp();
15459
+ // })
15460
+ // )
15461
+ // .then(() => {
15462
+ // // continue code here if needed
15463
+ // this.changeDetector?.detectChanges();
15464
+ // })
15465
+ // .catch((error) => {
15466
+ // console.error('An error occurred during toolbar setup:', error);
15467
+ // });
15458
15468
  }
15459
15469
  }
15460
15470
  run() {