Skip to content

Commit 4e5d061

Browse files
Merge pull request wso2#9546 from wso2/copilot/fix-hide-logout-url-heading
2 parents 341e2a2 + 7c61029 commit 4e5d061

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.changeset/grumpy-humans-fail.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@wso2is/admin.applications.v1": patch
3+
"@wso2is/console": patch
4+
---
5+
6+
Hide "Logout URL" heading when no logout fields are rendered

features/admin.applications.v1/components/forms/inbound-oidc-form.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3946,7 +3946,9 @@ export const InboundOIDCForm: FunctionComponent<InboundOIDCFormPropsInterface> =
39463946
{ /* Logout */ }
39473947
{
39483948
!isSubOrganization()
3949-
&& (isBackChannelLogoutEnabled || isFrontChannelLogoutEnabled)
3949+
&& ((isBackChannelLogoutEnabled && !isSPAApplication)
3950+
|| (isFrontChannelLogoutEnabled && !isMobileApplication
3951+
&& !isMcpClientApplication && !isM2MApplication))
39503952
&& !isSystemApplication
39513953
&& !isDefaultApplication
39523954
&& (
@@ -3958,7 +3960,9 @@ export const InboundOIDCForm: FunctionComponent<InboundOIDCFormPropsInterface> =
39583960
<Grid.Column mobile={ 16 } tablet={ 16 } computer={ 16 }>
39593961
<Heading as="h4">
39603962
{
3961-
(isBackChannelLogoutEnabled && isFrontChannelLogoutEnabled)
3963+
((isBackChannelLogoutEnabled && !isSPAApplication)
3964+
&& (isFrontChannelLogoutEnabled && !isMobileApplication
3965+
&& !isMcpClientApplication && !isM2MApplication))
39623966
? t("applications:forms.inboundOIDC.sections" +
39633967
".logoutURLs.heading")
39643968
: t("applications:forms.inboundOIDC.sections" +

0 commit comments

Comments
 (0)