From 6877f09c8448f0f6b67756293b359f12bd328527 Mon Sep 17 00:00:00 2001 From: Ramon Date: Fri, 3 Apr 2026 12:12:25 +0200 Subject: [PATCH] fix(console): disallow smtp double create #8964 (#11868) # Which Problems Are Solved When creating a new smtp providers it was possible to click the create button multiple times and create duplicate smtp providers. # How the Problems Are Solved Disable the create button when the smtp provider creation is pending. # Additional Context - Closes: #8964 --- .../app/modules/smtp-provider/smtp-provider.component.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/console/src/app/modules/smtp-provider/smtp-provider.component.html b/console/src/app/modules/smtp-provider/smtp-provider.component.html index 6063f8b17..847aecca4 100644 --- a/console/src/app/modules/smtp-provider/smtp-provider.component.html +++ b/console/src/app/modules/smtp-provider/smtp-provider.component.html @@ -243,7 +243,10 @@ color="primary" data-e2e="create-button" [disabled]=" - state.mainForm.invalid || state.senderForm.invalid || (['iam.policy.write'] | hasRole | async) === false + updateDataMutation.isPending() || + state.mainForm.invalid || + state.senderForm.invalid || + (['iam.policy.write'] | hasRole | async) === false " > {{ 'config' in state ? ('ACTIONS.SAVE' | translate) : ('ACTIONS.CREATE' | translate) }}