@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.
@@ -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.service.uiActionModel = uiActionModel;
3592
- let options = {
3593
- nodeId: uiActionModel.nodeId,
3594
- widgetId: uiActionModel.widgetId,
3595
- };
3596
- this.service.execute(uiActionModel.uiAction, options);
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();