From f7a03627cc93e985e1e3899813b6e1b71ffabb22 Mon Sep 17 00:00:00 2001 From: sanja <52755494+sanjacornelius@users.noreply.github.com> Date: Wed, 21 Jan 2026 13:12:49 -0800 Subject: [PATCH 1/4] disable launchpad button when using a process template --- src/components/topRail/TopRail.vue | 5 +++- .../launchpadControl/LaunchpadButton.vue | 27 ++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/components/topRail/TopRail.vue b/src/components/topRail/TopRail.vue index 8bd6586b4..fa359deac 100644 --- a/src/components/topRail/TopRail.vue +++ b/src/components/topRail/TopRail.vue @@ -21,7 +21,7 @@ /> - + @@ -85,6 +85,9 @@ export default { isPackageAiInstalled() { return window.ProcessMaker?.modeler?.isPackageAiInstalled; }, + disableLaunchpad() { + return window.ProcessMaker.modeler.process.is_template ? true : false; + }, }, watch: { numberOfErrors(newValue) { diff --git a/src/components/topRail/launchpadControl/LaunchpadButton.vue b/src/components/topRail/launchpadControl/LaunchpadButton.vue index 8dfe49f07..c79f5df0d 100644 --- a/src/components/topRail/launchpadControl/LaunchpadButton.vue +++ b/src/components/topRail/launchpadControl/LaunchpadButton.vue @@ -2,12 +2,14 @@ @@ -15,21 +17,40 @@ + + From f3f0c44c723d7f84fc02de4bdb3bea768eb37e93 Mon Sep 17 00:00:00 2001 From: sanja <52755494+sanjacornelius@users.noreply.github.com> Date: Wed, 21 Jan 2026 14:02:45 -0800 Subject: [PATCH 2/4] Code clean up; Disable Launchpad button when using process template --- src/components/topRail/TopRail.vue | 2 +- src/components/topRail/launchpadControl/LaunchpadButton.vue | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/topRail/TopRail.vue b/src/components/topRail/TopRail.vue index fa359deac..c04e6488d 100644 --- a/src/components/topRail/TopRail.vue +++ b/src/components/topRail/TopRail.vue @@ -86,7 +86,7 @@ export default { return window.ProcessMaker?.modeler?.isPackageAiInstalled; }, disableLaunchpad() { - return window.ProcessMaker.modeler.process.is_template ? true : false; + return window.ProcessMaker?.modeler?.process?.is_template; }, }, watch: { diff --git a/src/components/topRail/launchpadControl/LaunchpadButton.vue b/src/components/topRail/launchpadControl/LaunchpadButton.vue index c79f5df0d..99dd62d54 100644 --- a/src/components/topRail/launchpadControl/LaunchpadButton.vue +++ b/src/components/topRail/launchpadControl/LaunchpadButton.vue @@ -26,9 +26,13 @@ export default { data() { return { iconOpen: 'fas fa-play', - buttonDisabledClass: 'no-hover', }; }, + computed: { + buttonDisabledClass() { + return this.disabled ? 'no-hover' : ''; + }, + }, methods: { handleOpenLaunchpad() { if (!this.disabled) { From fff1c4b43a3afdaa3df7de8f66062ae710885d98 Mon Sep 17 00:00:00 2001 From: sanja <52755494+sanjacornelius@users.noreply.github.com> Date: Wed, 28 Jan 2026 12:40:44 -0800 Subject: [PATCH 3/4] fix: ensure boolean types for LaunchpadButton disabled prop --- src/components/topRail/TopRail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/topRail/TopRail.vue b/src/components/topRail/TopRail.vue index c04e6488d..977c914a8 100644 --- a/src/components/topRail/TopRail.vue +++ b/src/components/topRail/TopRail.vue @@ -86,7 +86,7 @@ export default { return window.ProcessMaker?.modeler?.isPackageAiInstalled; }, disableLaunchpad() { - return window.ProcessMaker?.modeler?.process?.is_template; + return !!window.ProcessMaker?.modeler?.process?.is_template; }, }, watch: { From 6645314f353ba2c95d9df13f0453f8acc5e83279 Mon Sep 17 00:00:00 2001 From: sanja <52755494+sanjacornelius@users.noreply.github.com> Date: Wed, 28 Jan 2026 13:04:02 -0800 Subject: [PATCH 4/4] Remove redundant `if (!this.disabled)` conditional --- src/components/topRail/launchpadControl/LaunchpadButton.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/topRail/launchpadControl/LaunchpadButton.vue b/src/components/topRail/launchpadControl/LaunchpadButton.vue index 99dd62d54..0146509ad 100644 --- a/src/components/topRail/launchpadControl/LaunchpadButton.vue +++ b/src/components/topRail/launchpadControl/LaunchpadButton.vue @@ -35,9 +35,7 @@ export default { }, methods: { handleOpenLaunchpad() { - if (!this.disabled) { - this.$emit('verifyLaunchpad', window.ProcessMaker.modeler.launchpad === null); - } + this.$emit('verifyLaunchpad', window.ProcessMaker.modeler.launchpad === null); }, handleMouseOver() { if (!this.disabled) {