@kestra-io/ui-libs 0.0.38 → 0.0.39

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kestra-io/ui-libs",
3
- "version": "v0.0.38",
3
+ "version": "v0.0.39",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",
@@ -188,8 +188,8 @@
188
188
  }
189
189
  },
190
190
  cls() {
191
- if (this.data.node.trigger) {
192
- return this.data.node.trigger.type;
191
+ if (this.data.node.triggerDeclaration) {
192
+ return this.data.node.triggerDeclaration.type;
193
193
  }
194
194
 
195
195
  if (!this.data.node?.task) {
@@ -14,7 +14,7 @@
14
14
  v-if="!execution"
15
15
  class="circle-button"
16
16
  :class="[`bg-${color}`]"
17
- @click="$emit(EVENTS.EDIT, {task: data.node.trigger, section: SECTIONS.TRIGGERS})"
17
+ @click="$emit(EVENTS.EDIT, {task: data.node.triggerDeclaration, section: SECTIONS.TRIGGERS})"
18
18
  >
19
19
  <tooltip :title="Utils.translate('edit')">
20
20
  <Pencil class="button-icon" alt="Edit task" />
@@ -166,7 +166,7 @@ export default class VueFlowUtils {
166
166
  }
167
167
 
168
168
  static isTriggerNode(node) {
169
- return node.trigger !== undefined && node.type.endsWith("GraphTrigger");
169
+ return node.triggerDeclaration !== undefined && node.type.endsWith("GraphTrigger");
170
170
  }
171
171
 
172
172
  static isCollapsedCluster(node) {