@processmaker/screen-builder 2.83.10 → 2.83.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.
|
@@ -50312,7 +50312,7 @@ const hee = fee.exports, mee = () => new Promise((t) => {
|
|
|
50312
50312
|
return e && e.allowed ? this.parentRequest : this.requestId;
|
|
50313
50313
|
},
|
|
50314
50314
|
processUpdated: ie.debounce(function(t) {
|
|
50315
|
-
|
|
50315
|
+
t.event === "ACTIVITY_ACTIVATED" && this.reload(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
50316
50316
|
}, 300),
|
|
50317
50317
|
initSocketListeners() {
|
|
50318
50318
|
this.addSocketListener(
|
|
@@ -50331,13 +50331,16 @@ const hee = fee.exports, mee = () => new Promise((t) => {
|
|
|
50331
50331
|
}
|
|
50332
50332
|
), this.taskId || this.reload();
|
|
50333
50333
|
},
|
|
50334
|
+
existsEventMessage(t, e) {
|
|
50335
|
+
return sessionStorage.getItem(t) ? !0 : (sessionStorage.setItem(t, e), !1);
|
|
50336
|
+
},
|
|
50334
50337
|
listenForParentChanges() {
|
|
50335
50338
|
this.parentRequest && this.addSocketListener(
|
|
50336
50339
|
`parent-${this.requestId}`,
|
|
50337
50340
|
`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,
|
|
50338
50341
|
".ProcessUpdated",
|
|
50339
50342
|
(t) => {
|
|
50340
|
-
["ACTIVITY_ACTIVATED"].includes(t.event) && this.closeTask(this.parentRequest), ["ACTIVITY_COMPLETED"].includes(t.event) && this.task.process_request.status === "COMPLETED" && this.processCompleted(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
50343
|
+
["ACTIVITY_ACTIVATED"].includes(t.event) && !this.existsEventMessage(`${t.event}-${this.userId}-${this.taskId}`) && this.closeTask(this.parentRequest), ["ACTIVITY_COMPLETED"].includes(t.event) && !this.existsEventMessage(`${t.event}-${this.userId}-${this.taskId}`) && this.task.process_request.status === "COMPLETED" && this.processCompleted(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
50341
50344
|
}
|
|
50342
50345
|
);
|
|
50343
50346
|
},
|