@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/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/modeler",
3
- "version": "1.19.0",
3
+ "version": "1.20.1",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/modeler",
3
- "version": "1.19.0",
3
+ "version": "1.20.1",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "open-cypress": "TZ=UTC cypress open",
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.category.is_system == false
108
- && this.filterValidStartEvents(process.events).length > 0;
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 => {
@@ -245,7 +245,9 @@ export default {
245
245
  this.setSource(this.sourceShape);
246
246
 
247
247
  this.$once('click', () => {
248
- this.setupLinkTools();
248
+ this.$nextTick(() => {
249
+ this.setupLinkTools();
250
+ });
249
251
  });
250
252
 
251
253
  const targetRef = this.getTargetRef