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: add ability to edit pki key #18490

Merged
merged 5 commits into from
Dec 20, 2022
Merged

Conversation

hellobontempo
Copy link
Contributor

edit-key

Copy link
Collaborator

@hashishaw hashishaw left a comment

Choose a reason for hiding this comment

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

Nice work!

@@ -1,5 +1,5 @@
<label for={{@attr.name}} class="is-label" data-test-readonly-label>
{{this.labelString}}
{{or @label this.labelString}}
Copy link
Collaborator

@hashishaw hashishaw Dec 20, 2022

Choose a reason for hiding this comment

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

nit: debating whether this should be in the getter for this.labelString. On one hand, this makes it very clear that passing @label in explicitly will override any other calculations. But, we already have a method here for calculating the label and it could easily live there 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had it that way initially and and thought the getter had a lot going on as well - but I'm happy to move it back there!

Another thought is I could do something similar to the above, and create a let for keyType and leave this component alone. This also gives us the benefit of including the option's subtext... 🤔 Any opinion?

{{/each}}
{{else}}
{{! only keyName is edit-able }}
{{#let (find-by "name" "keyName" @model.formFields) as |attr|}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

🤩

@vercel
Copy link

vercel bot commented Dec 20, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
vault 🔄 Building (Inspect) Dec 20, 2022 at 10:21PM (UTC)

@hellobontempo hellobontempo enabled auto-merge (squash) December 20, 2022 23:13
@hellobontempo hellobontempo merged commit 6f5082a into main Dec 20, 2022
@hellobontempo hellobontempo deleted the ui/VAULT-12267/edit-pki-key branch December 21, 2022 03:18
hashishaw pushed a commit that referenced this pull request Dec 21, 2022
* add edit form

* refactor readonly field

* refactor conditional in key form

* remove model validations from edit form

* update namespace reminder opy
joshbrand pushed a commit that referenced this pull request Jan 11, 2023
* add edit form

* refactor readonly field

* refactor conditional in key form

* remove model validations from edit form

* update namespace reminder opy
AnPucel pushed a commit that referenced this pull request Jan 14, 2023
* add edit form

* refactor readonly field

* refactor conditional in key form

* remove model validations from edit form

* update namespace reminder opy
dhuckins pushed a commit that referenced this pull request Jan 19, 2023
* add edit form

* refactor readonly field

* refactor conditional in key form

* remove model validations from edit form

* update namespace reminder opy
dhuckins pushed a commit that referenced this pull request Jan 19, 2023
* add edit form

* refactor readonly field

* refactor conditional in key form

* remove model validations from edit form

* update namespace reminder opy
AnPucel pushed a commit that referenced this pull request Jan 25, 2023
* add edit form

* refactor readonly field

* refactor conditional in key form

* remove model validations from edit form

* update namespace reminder opy
AnPucel pushed a commit that referenced this pull request Feb 3, 2023
* add edit form

* refactor readonly field

* refactor conditional in key form

* remove model validations from edit form

* update namespace reminder opy
jayant07-yb pushed a commit to jayant07-yb/hashicorp-vault-integrations that referenced this pull request Mar 15, 2023
* add edit form

* refactor readonly field

* refactor conditional in key form

* remove model validations from edit form

* update namespace reminder opy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants