@smartbit4all/ng-client 1.0.24 → 1.0.26
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.
- package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +14 -7
- package/fesm2015/smartbit4all-ng-client.mjs +13 -6
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +13 -6
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +1 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.0.26.tgz +0 -0
- package/smartbit4all-ng-client-1.0.24.tgz +0 -0
|
@@ -3563,6 +3563,7 @@ class UiActionToolbarComponent {
|
|
|
3563
3563
|
this.service = service;
|
|
3564
3564
|
this.manager = manager;
|
|
3565
3565
|
this._destroy$ = new Subject();
|
|
3566
|
+
this.pressedButtonActive = true;
|
|
3566
3567
|
this.manager.languageChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
3567
3568
|
this.setUp();
|
|
3568
3569
|
});
|
|
@@ -3588,12 +3589,18 @@ class UiActionToolbarComponent {
|
|
|
3588
3589
|
}
|
|
3589
3590
|
onActionClicked(event, uiActionModel) {
|
|
3590
3591
|
event.stopPropagation();
|
|
3591
|
-
this.
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3592
|
+
if (this.pressedButtonActive) {
|
|
3593
|
+
this.pressedButtonActive = false;
|
|
3594
|
+
setTimeout(() => {
|
|
3595
|
+
this.pressedButtonActive = true;
|
|
3596
|
+
}, 1000);
|
|
3597
|
+
this.service.uiActionModel = uiActionModel;
|
|
3598
|
+
let options = {
|
|
3599
|
+
nodeId: uiActionModel.nodeId,
|
|
3600
|
+
widgetId: uiActionModel.widgetId,
|
|
3601
|
+
};
|
|
3602
|
+
this.service.execute(uiActionModel.uiAction, options);
|
|
3603
|
+
}
|
|
3597
3604
|
}
|
|
3598
3605
|
onActionDoubleClicked(event, uiActionModel) {
|
|
3599
3606
|
event.stopPropagation();
|