-
Notifications
You must be signed in to change notification settings - Fork 52
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
Dialog editor: Make "Load Values on Init" independent of "Show Refresh Button" #376
Conversation
Cc @gmcculloug, @eclarizio ... an alternative to this would be to allow the user to actually disable both switches (so, no refresh button, and no loading on init), but I'm not sure how useful that would be. (And would depend on backend changes, because...
) EDIT: (this was written back when I tried to only show the switch, not making it possible to change) |
EDIT: oh, never mind, turns out this is useful when you only want the field to update from "fields to refresh" @miq-bot add_label wip |
…h Button" Before, load values on init was implied when show refresh button was false Now, both can be set independently, allowing a field to only refresh because of "fields to refresh". https://bugzilla.redhat.com/show_bug.cgi?id=1684575
@miq-bot remove_label wip (but dependencies) |
@miq-bot add_label wip TODO: make sure the default values still make sense |
(since it really always has, except when show refresh button was enabled)
Checked commits https://github.com/himdel/ui-components/compare/114c60d16d2811acdf92df227d20222fc975f5ec~...3f98c7f91f7d26c4256b371918adfdacc2fd8566 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot remove_label wip New fields should get |
@miq-bot add_label hammer/no (because ManageIQ/manageiq-schema#357 (comment)) |
Depends on:
Dynamic dialog fields can load on init (once), by manually triggering a refresh button, or from "fields to refresh".
Before, when there was no refresh button, load on init was hardcoded to true on the model side and the switch was hidden.
This makes the "Load Values on Init" switch always visible, independent of "Show Refresh Button".
https://bugzilla.redhat.com/show_bug.cgi?id=1684575