Disable Launchpad Access When Editing Process Templates in Modeler by sanjacornelius · Pull Request #1958 · ProcessMaker/modeler

Issue & Reproduction Steps

This PR fixes an issue where the Launchpad button remained enabled while editing a process template in the Modeler. Clicking the button incorrectly redirected users to the Launchpad, allowing templates to be executed outside the context of a process.

To prevent this unintended behavior, the Launchpad button is now disabled whenever the Modeler is opened for a process template.

Solution

  • Added a conditional check to disable the Launchpad button in the Modeler when the process has is_template: true.

How to Test

  1. Create a process template.
  2. Navigate to Processes > Templates.
  3. Select Edit Template.
  4. In the Modeler, attempt to click the Launchpad button.

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

Note

Low Risk
Small UI-only change that gates navigation based on an existing is_template flag; low risk aside from potentially blocking Launchpad access if the flag is mis-set.

Overview
Prevents Launchpad access while editing process templates in the Modeler by computing disableLaunchpad from process.is_template and passing it to LaunchpadButton.

Updates LaunchpadButton to accept a disabled prop, apply the native disabled state, and suppress hover icon changes/hover styling when disabled.

Written by Cursor Bugbot for commit 6645314. This will update automatically on new commits. Configure here.