Skip to content

Commit

Permalink
fix(topology): disabled triggers are greyed out
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Mar 8, 2024
1 parent 8a997c3 commit f76971a
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 2 deletions.
213 changes: 213 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"eslint-plugin-vue": "^9.19.2",
"sass": "^1.69.6",
"vite": "^5.0.10",
"vite-plugin-static-copy": "^1.0.0"
"vite-plugin-static-copy": "^1.0.0",
"@typescript-eslint/parser": "^7.1.0"
}
}
8 changes: 7 additions & 1 deletion src/components/nodes/TriggerNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Handle type="source" :position="sourcePosition" />
<basic-node
:id="id"
:data="data"
:data="formattedData"
:color="color"
:icons="icons"
:icon-component="iconComponent"
Expand Down Expand Up @@ -59,6 +59,12 @@
},
color() {
return this.data.color ?? "primary"
},
formattedData() {
return {
...this.data,
unused: this.data.node?.triggerDeclaration?.disabled || this.data.node?.trigger?.disabled
}
}
},
emits: [
Expand Down

0 comments on commit f76971a

Please sign in to comment.