@kestra-io/ui-libs 0.0.42 → 0.0.44
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.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
return this.execution && this.execution.taskRunList ? this.execution.taskRunList : []
|
|
23
23
|
},
|
|
24
24
|
taskRuns() {
|
|
25
|
-
return this.taskRunList.filter(t => t.taskId === Utils.afterLastDot(this.
|
|
25
|
+
return this.taskRunList.filter(t => t.taskId === Utils.afterLastDot(this.uid))
|
|
26
26
|
},
|
|
27
27
|
state() {
|
|
28
28
|
if (!this.taskRuns) {
|
|
@@ -89,6 +89,10 @@
|
|
|
89
89
|
task: {
|
|
90
90
|
type: Object,
|
|
91
91
|
default: null
|
|
92
|
+
},
|
|
93
|
+
uid: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: null
|
|
92
96
|
}
|
|
93
97
|
}
|
|
94
98
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@mouseleave="forwardEvent(EVENTS.MOUSE_LEAVE)"
|
|
15
15
|
>
|
|
16
16
|
<template #content>
|
|
17
|
-
<execution-informations v-if="taskExecution" :execution="taskExecution" :task="data.node.task" :color="color" />
|
|
17
|
+
<execution-informations v-if="taskExecution" :execution="taskExecution" :task="data.node.task" :color="color" :uid="data.node.uid" />
|
|
18
18
|
</template>
|
|
19
19
|
<template #badge-button-before>
|
|
20
20
|
<span
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
return undefined;
|
|
118
118
|
},
|
|
119
119
|
taskRuns() {
|
|
120
|
-
return this.taskRunList.filter(t => t.taskId === Utils.afterLastDot(this.data.node.
|
|
120
|
+
return this.taskRunList.filter(t => t.taskId === Utils.afterLastDot(this.data.node.uid))
|
|
121
121
|
},
|
|
122
122
|
state() {
|
|
123
123
|
if (!this.taskRuns) {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
v-if="!execution"
|
|
25
25
|
class="circle-button"
|
|
26
26
|
:class="[`bg-${color}`]"
|
|
27
|
-
@click="$emit(EVENTS.DELETE, {id, section: SECTIONS.TRIGGERS})"
|
|
27
|
+
@click="$emit(EVENTS.DELETE, {id: triggerId, section: SECTIONS.TRIGGERS})"
|
|
28
28
|
>
|
|
29
29
|
<tooltip :title="Utils.translate('delete')">
|
|
30
30
|
<Delete class="button-icon" alt="Delete task" />
|
|
@@ -65,6 +65,9 @@
|
|
|
65
65
|
...this.data,
|
|
66
66
|
unused: this.data.node?.triggerDeclaration?.disabled || this.data.node?.trigger?.disabled
|
|
67
67
|
}
|
|
68
|
+
},
|
|
69
|
+
triggerId() {
|
|
70
|
+
return Utils.afterLastDot(this.id);
|
|
68
71
|
}
|
|
69
72
|
},
|
|
70
73
|
emits: [
|
|
@@ -162,11 +162,11 @@ export default class VueFlowUtils {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
static isTaskNode(node) {
|
|
165
|
-
return
|
|
165
|
+
return ["GraphTask", "SubflowGraphTask"].some(t => node.type.endsWith(t));
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
static isTriggerNode(node) {
|
|
169
|
-
return node.
|
|
169
|
+
return node.type.endsWith("GraphTrigger");
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
static isCollapsedCluster(node) {
|
|
@@ -299,7 +299,7 @@ export default class VueFlowUtils {
|
|
|
299
299
|
|
|
300
300
|
const clustersWithoutRootNode = [CLUSTER_PREFIX + TRIGGERS_NODE_UID];
|
|
301
301
|
|
|
302
|
-
if (!flowGraph || !this.flowHaveTasks(flowSource)) {
|
|
302
|
+
if (!flowGraph || (flowSource && !this.flowHaveTasks(flowSource))) {
|
|
303
303
|
elements.push({
|
|
304
304
|
id: "start",
|
|
305
305
|
type: "dot",
|
|
@@ -402,7 +402,7 @@ export default class VueFlowUtils {
|
|
|
402
402
|
nodeType = "collapsedcluster";
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
const color = this.nodeColor(node, collapsed
|
|
405
|
+
const color = this.nodeColor(node, collapsed);
|
|
406
406
|
// If task type includes '$', it's an inner class so it's probably an internal class not supposed to be editable
|
|
407
407
|
// In such case, only the root task will be editable
|
|
408
408
|
const isReadOnlyTask = isReadOnly || node.task?.type?.includes("$") || readOnlyUidPrefixes.some(prefix => node.uid.startsWith(prefix + "."));
|