From 986712edb422b941b0536a5a966629b790bca1ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Busso?= <90727999+agustinbusso@users.noreply.github.com> Date: Wed, 28 Feb 2024 17:17:50 -0300 Subject: [PATCH] Show button is packageAi is installed --- src/components/modeler/Modeler.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/modeler/Modeler.vue b/src/components/modeler/Modeler.vue index e68898648..a15e19630 100644 --- a/src/components/modeler/Modeler.vue +++ b/src/components/modeler/Modeler.vue @@ -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;