@processmaker/screen-builder 3.8.23 → 3.8.25
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.
|
@@ -55174,7 +55174,11 @@ const Bie = () => new Promise((t) => {
|
|
|
55174
55174
|
return;
|
|
55175
55175
|
}
|
|
55176
55176
|
const { event: e, elementDestination: r, tokenId: i } = t;
|
|
55177
|
-
e === "ACTIVITY_COMPLETED" && this.task.id === i && r && (this.task.elementDestination = r, this.task.allow_interstitial = r.type === "displayNextAssignedTask"
|
|
55177
|
+
if (e === "ACTIVITY_COMPLETED" && this.task.id === i && r && (this.task.elementDestination = r, this.task.allow_interstitial = r.type === "displayNextAssignedTask", (r == null ? void 0 : r.type) !== "taskSource" && (r != null && r.value))) {
|
|
55178
|
+
window.location.href = r.value;
|
|
55179
|
+
return;
|
|
55180
|
+
}
|
|
55181
|
+
e === "ACTIVITY_EXCEPTION" && (this.$emit("error", this.requestId), window.location.href = `/requests/${this.requestId}`);
|
|
55178
55182
|
},
|
|
55179
55183
|
/**
|
|
55180
55184
|
* Adds a socket listener for redirect events.
|
|
@@ -55222,8 +55226,8 @@ const Bie = () => new Promise((t) => {
|
|
|
55222
55226
|
* @param {Object} data - The event data containing the tokenId of the task.
|
|
55223
55227
|
*/
|
|
55224
55228
|
async handleRedirectToTask(t) {
|
|
55225
|
-
var e, r, i, a;
|
|
55226
|
-
if ((e = t == null ? void 0 : t.params[0]) != null && e.tokenId && ((r = this.task.user) == null ? void 0 : r.id) === ((i = t.params[0]) == null ? void 0 : i.userId) || ((a = this.task.elementDestination) == null ? void 0 : a.type) === "taskSource") {
|
|
55229
|
+
var e, r, i, a, n, s;
|
|
55230
|
+
if ((e = t == null ? void 0 : t.params[0]) != null && e.tokenId && ((r = this.task.user) == null ? void 0 : r.id) === ((i = t.params[0]) == null ? void 0 : i.userId) || ((a = this.task.elementDestination) == null ? void 0 : a.type) === "taskSource" || ((n = t.params[0]) == null ? void 0 : n.userId) === null && ((s = t.params[0]) == null ? void 0 : s.userCanClaim) === !0) {
|
|
55227
55231
|
if (this.loadingTask = !0, this.task && !(this.task.allow_interstitial || this.isSameUser(this.task, t))) {
|
|
55228
55232
|
window.location.href = await this.getDestinationUrl();
|
|
55229
55233
|
return;
|
|
@@ -55348,7 +55352,7 @@ var Hie = function() {
|
|
|
55348
55352
|
Vie,
|
|
55349
55353
|
!1,
|
|
55350
55354
|
null,
|
|
55351
|
-
"
|
|
55355
|
+
"0d62aa46",
|
|
55352
55356
|
null,
|
|
55353
55357
|
null
|
|
55354
55358
|
);
|