@processmaker/modeler 1.19.0 → 1.20.1
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/dist/modeler.common.js +76 -61
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +76 -61
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +1 -1
- package/dist/modeler.umd.min.js.map +1 -1
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/nodes/subProcess/SubProcessFormSelect.vue +9 -3
- package/src/mixins/linkConfig.js +3 -1
package/package-lock.json
CHANGED
package/package.json
CHANGED
package/src/.DS_Store
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -73,6 +73,13 @@ export default {
|
|
|
73
73
|
if (!this.selectedProcess) { return []; }
|
|
74
74
|
return this.filterValidStartEvents(this.selectedProcess.events);
|
|
75
75
|
},
|
|
76
|
+
currentProcessId() {
|
|
77
|
+
const match = window.location.href.match(/modeler\/(\d+)/);
|
|
78
|
+
if (match && match[1]) {
|
|
79
|
+
return parseInt(match[1]);
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
},
|
|
76
83
|
},
|
|
77
84
|
watch: {
|
|
78
85
|
selectedProcess() {
|
|
@@ -104,9 +111,8 @@ export default {
|
|
|
104
111
|
},
|
|
105
112
|
filterValidProcesses(processes) {
|
|
106
113
|
return processes.filter(process => {
|
|
107
|
-
return process.
|
|
108
|
-
|
|
109
|
-
});
|
|
114
|
+
return this.filterValidStartEvents(process.events).length > 0;
|
|
115
|
+
}).filter(process => process.id !== this.currentProcessId);
|
|
110
116
|
},
|
|
111
117
|
filterValidStartEvents(events) {
|
|
112
118
|
return events.filter(event => {
|
package/src/mixins/linkConfig.js
CHANGED