-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Allow navigate to list from View Secret card #22502
Conversation
|
||
get buttonText() { | ||
if (this.args.type === 'secret') { | ||
if (this.secret.endsWith('/')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know endsWith()
was a thing!! So cool 🤩
Build Results: |
CI Results: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 Thanks for tackling!
Can only backport as far as 1.13 because the base changes in |
Before this fix, the View Secret card that shows when no
LIST
permissions on a KV engine would only navigate to the show secret page.With this update, if the input ends in a slash the button will update to say "View list" and it will take you to the correct subdirectory in KV:
I also changed the way the form is triggered, so that it will trigger both on button click and "Enter" key (like a normal form)
Fixes #20563