Skip to content

Commit

Permalink
Show button is packageAi is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
agustinbusso committed Feb 28, 2024
1 parent de27468 commit 986712e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/modeler/Modeler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,11 @@ export default {
},
},
computed: {
isPackageAiInstalled() {
return window.ProcessMaker?.modeler?.isPackageAiInstalled;
},
showWelcomeMessage() {
return !this.selectedNode && !this.nodes.length && !store.getters.isReadOnly && this.isLoaded;
return !this.selectedNode && !this.nodes.length && !store.getters.isReadOnly && this.isLoaded && this.isPackageAiInstalled;
},
noElementsSelected() {
return this.highlightedNodes.filter(node => !node.isType('processmaker-modeler-process')).length === 0;
Expand Down

0 comments on commit 986712e

Please sign in to comment.