-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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/fix db role ttl display #14224
UI/fix db role ttl display #14224
Conversation
@@ -63,6 +63,14 @@ | |||
@label={{capitalize (or attr.options.label (humanize (dasherize attr.name)))}} | |||
@value={{stringify (get @model attr.name)}} | |||
/> | |||
{{else if (eq attr.options.editType "ttl")}} |
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.
just checking that the editType here doesn't need to be default_ttl?
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.
Nope, the attr.name
is default_ttl
, but here I'm checking if editType (as set in the options on the model) is ttl, as it is for max_ttl as well, so that we can format it correctly 👍
This PR fixes a UI issue where the TTL looked like it never changed from 1h (the default) when really the adapter was not parsing the correct value from the API, which is
default_ttl
.