Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide my account switch for sub-organization users when my account is not shared. #7634

Merged
merged 3 commits into from
Feb 16, 2025

Conversation

Yasasr1
Copy link
Contributor

@Yasasr1 Yasasr1 commented Feb 16, 2025

Purpose

My Account switch button in the console header will be shown only if the user is logged into their resident organization and my account is shared with that organization

Fixes

const {
data: myAccountApplicationData,
isLoading: isMyAccountApplicationDataFetchRequestLoading
} = useMyAccountApplicationData();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we fetch the myaccount application only when showAppSwitchButton is set to true?

Copy link

codecov bot commented Feb 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.85%. Comparing base (602ef75) to head (7eb84bb).
Report is 102 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7634   +/-   ##
=======================================
  Coverage   41.85%   41.85%           
=======================================
  Files          42       42           
  Lines         939      939           
  Branches      217      217           
=======================================
  Hits          393      393           
  Misses        546      546           
Flag Coverage Δ
@wso2is/core 41.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@pavinduLakshan pavinduLakshan merged commit 57e6da9 into wso2:master Feb 16, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants