From 703f16ea86ad80425bba7252e1dd4da2017f7dd8 Mon Sep 17 00:00:00 2001 From: mposolda Date: Mon, 21 Oct 2024 16:01:41 +0200 Subject: [PATCH] Hide the 'Delete' button in the account console when DeleteCredentialAction is disabled or unavailable closes #30204 Signed-off-by: mposolda --- .../src/account-security/SigningIn.tsx | 8 +++--- .../credential/CredentialTypeMetadata.java | 3 +++ .../account/AccountRestServiceTest.java | 26 ++++++++++++++++++- 3 files changed, 32 insertions(+), 5 deletions(-) diff --git a/js/apps/account-ui/src/account-security/SigningIn.tsx b/js/apps/account-ui/src/account-security/SigningIn.tsx index 4e9859c1332..6652ab3f812 100644 --- a/js/apps/account-ui/src/account-security/SigningIn.tsx +++ b/js/apps/account-ui/src/account-security/SigningIn.tsx @@ -207,7 +207,7 @@ export const SigningIn = () => { aria-label={t("updateCredAriaLabel")} aria-labelledby={`cred-${meta.credential.id}`} > - {container.removeable ? ( + {container.removeable && ( - ) : ( + )} + {container.updateAction && (