From f1e381e51e5f0d33fa97442cb193eeed967ce49d Mon Sep 17 00:00:00 2001 From: options-a11y <171981126+options-a11y@users.noreply.github.com> Date: Thu, 6 Jun 2024 22:55:19 +0200 Subject: [PATCH] fix: deactivate active button after user cancelled --- .../zeebe-plugin/start-instance-plugin/StartInstancePlugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/plugins/zeebe-plugin/start-instance-plugin/StartInstancePlugin.js b/client/src/plugins/zeebe-plugin/start-instance-plugin/StartInstancePlugin.js index 508f0ef54d..9b37356770 100644 --- a/client/src/plugins/zeebe-plugin/start-instance-plugin/StartInstancePlugin.js +++ b/client/src/plugins/zeebe-plugin/start-instance-plugin/StartInstancePlugin.js @@ -68,6 +68,7 @@ export default class StartInstancePlugin extends PureComponent { // (2.1) user cancelled if (!deploymentConfig) { + this.setState({ activeButton: false }); return; } @@ -84,8 +85,9 @@ export default class StartInstancePlugin extends PureComponent { configuration : startInstanceConfig } = await this.getConfigurationFromUser(startConfiguration); - // (3.3) handle user cancelation + // (3.3) handle user cancellation if (action === 'cancel') { + this.setState({ activeButton: false }); return; }