@acorex/platform 19.1.11 → 19.1.12

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.
@@ -2221,14 +2221,19 @@ class AXPToastAction extends AXPWorkflowAction {
2221
2221
  this.translationService = inject(AXTranslationService);
2222
2222
  }
2223
2223
  async execute(context) {
2224
- this.toastService.show({
2225
- color: this.color,
2226
- title: await this.translationService.translateAsync(this.title),
2227
- content: await this.translationService.translateAsync(this.content),
2228
- closeButton: true,
2229
- timeOut: 3000,
2230
- timeOutProgress: true,
2231
- });
2224
+ const options = context.getVariable('options');
2225
+ const process = options?.['process'];
2226
+ const showResult = process?.showResult ?? true;
2227
+ if (showResult) {
2228
+ this.toastService.show({
2229
+ color: this.color,
2230
+ title: await this.translationService.translateAsync(this.title),
2231
+ content: await this.translationService.translateAsync(this.content),
2232
+ closeButton: true,
2233
+ timeOut: 3000,
2234
+ timeOutProgress: true,
2235
+ });
2236
+ }
2232
2237
  }
2233
2238
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPToastAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2234
2239
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPToastAction }); }