@smartbit4all/ng-client 3.3.116 → 3.3.117

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.
@@ -15128,9 +15128,19 @@ class SmartComponentApiClient {
15128
15128
  actionModel.push(action);
15129
15129
  });
15130
15130
  this.uiActionModels = globalUiActionModels;
15131
- toolbars.forEach((toolbar) => {
15131
+ // toolbars.forEach((toolbar) => {
15132
+ // toolbar.uiActionModels = toolbarModels.get(toolbar.id!);
15133
+ // toolbar.setUp();
15134
+ // });
15135
+ Promise.all(toolbars.map((toolbar) => {
15132
15136
  toolbar.uiActionModels = toolbarModels.get(toolbar.id);
15133
- toolbar.setUp();
15137
+ return toolbar.setUp();
15138
+ }))
15139
+ .then(() => {
15140
+ // continue code here if needed
15141
+ })
15142
+ .catch((error) => {
15143
+ console.error('An error occurred during toolbar setup:', error);
15134
15144
  });
15135
15145
  }
15136
15146
  }