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

Make view results button visible on DomainCard for unauth'd users #4599

Merged
merged 6 commits into from
Jun 23, 2023

Conversation

lcampbell2
Copy link
Collaborator

As described, to ensure users know this is an option they can receive upon login and affiliation

frontend/src/guidance/GuidancePage.js Outdated Show resolved Hide resolved
Comment on lines +207 to +219
<Button
variant="primary"
as={RouteLink}
to={{
pathname: isLoggedIn() ? `/domains/${url}` : '/sign-in',
state: { from: location.pathname },
}}
px="10"
>
<Text whiteSpace="noWrap">
<Trans>View Results</Trans>
</Text>
</Button>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thoughts on disabling button if userHasPermission === false, possibly also changing text to some form of Not Affiliated ?

@lcampbell2 lcampbell2 merged commit b02c52e into master Jun 23, 2023
22 checks passed
@lcampbell2 lcampbell2 deleted the make-view-results-btn-visible branch June 23, 2023 18:02
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.

None yet

2 participants