-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: enforce mandatory chart name on save and edit #10482
Conversation
@villebro pattern looks good. can we switch the button order of the Edit Chart Properties modal? Move Save to the right and Cancel to the left. sim to the Save Chart arrangement. can we also change the color of the active state for the Save button to #20A7C9? right now both active and disabled state are grey. |
@Steejay got it; I switched the order of the buttons. I think the colors are off in the animation, here's what they actually look like: |
@villebro great! thanks Ville. |
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.
LGTM!
* fix: show empty charts as empty in chart list view * migrate ControlLabel to FormLabel and enforce requred fields * lint * reorder buttons
* fix: show empty charts as empty in chart list view * migrate ControlLabel to FormLabel and enforce requred fields * lint * reorder buttons
SUMMARY
Currently it is possible to save charts without names, causing confusion in the React CRUD list view. This PR changes the following:
ControlLabel
toFormLabel
onSaveModal.tsx
and add `required props to chart and dashboard and enforce required chart name on both "Save" and "Save & Go To Dashboard".BEFORE
AFTER
TEST PLAN
ADDITIONAL INFORMATION