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

ui: Adds warning icon to side menu when ACLs are disabled #9864

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

johncowen
Copy link
Contributor

Shows a warning icon next to the Access Controls title of the side nav when ACLs are disabled to give an always on reminder that they are not enabled. We also show related unlinked navigation items which are visible but not clickable (Roles, Policies, Auth Methods). Tokens is still linked to give an area for us to provide further info.

Screenshot 2021-03-10 at 18 47 58

When ACLs are enabled there is no change to how it was previously.

Worthwhile noting that we added a (can "use acls") which should be used within templates moving forwards rather then (env "CONSUL_ACLS_ENABLED") - we should try to gradually phase out using the env helper from within templates, instead favouring can for permission/abilities and t for text/copy/URLs.

Both can and t helpers are used widely in other product UIs whereas env is not.

@johncowen johncowen added the theme/ui Anything related to the UI label Mar 10, 2021
@johncowen johncowen requested a review from kaxcode March 10, 2021 18:54
@vercel vercel bot temporarily deployed to Preview – consul March 11, 2021 09:36 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging March 11, 2021 09:36 Inactive
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

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

LGTM

@vercel vercel bot temporarily deployed to Preview – consul-ui-staging March 17, 2021 10:48 Inactive
@vercel vercel bot temporarily deployed to Preview – consul March 17, 2021 10:48 Inactive
@johncowen johncowen merged commit aca7976 into master Mar 17, 2021
@johncowen johncowen deleted the ui/feature/acls-status branch March 17, 2021 11:23
@hashicorp-ci
Copy link
Contributor

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/338566.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants