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 a notice for non-primary intention creation #11985

Merged
merged 2 commits into from Jan 12, 2022

Conversation

johncowen
Copy link
Contributor

You cannot specify partitions whilst creating intentions if you are not in the primary datacenter.

Here we check to see if we have partitions enabled, then see if we are prohibited from 'choosing' them using our ability for partitions, in which case we show the notice which is just a simple-ish presentational component.

We only do this for the create screen, and as the isManagedByCRDs notice was intertwined with this conditional previously, we split that up here.

Screenshot 2022-01-10 at 17 39 38

@johncowen johncowen added type/enhancement Proposed improvement or new feature theme/ui Anything related to the UI backport/1.11 labels Jan 10, 2022
@johncowen johncowen requested review from jgwhite, amyrlam, a user and natmegs January 10, 2022 17:49
Copy link

@amyrlam amyrlam left a comment

Choose a reason for hiding this comment

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

:shipit: LGTM

@vercel vercel bot temporarily deployed to Preview – consul January 12, 2022 09:31 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging January 12, 2022 09:31 Inactive
@johncowen johncowen merged commit 9192452 into main Jan 12, 2022
@johncowen johncowen deleted the ui/chore/xpart-intention-notice branch January 12, 2022 11:50
@hc-github-team-consul-core
Copy link
Collaborator

🍒 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/549924.

@hc-github-team-consul-core
Copy link
Collaborator

🍒✅ Cherry pick of commit 9192452 onto release/1.11.x succeeded!

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 type/enhancement Proposed improvement or new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants