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

Dialog sample - fix render dropdowns #6630

Merged
merged 1 commit into from
Jan 24, 2020
Merged

Dialog sample - fix render dropdowns #6630

merged 1 commit into from
Jan 24, 2020

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jan 21, 2020

Automation > Automate > Customization > Service Dialogs,
click a dialog, see right-side detail

before, if the dialog only has dynamic dropdowns, or only required non-dynamic dropdowns, no dropdown would get shown.

That's because they already have the .selectpicker class which hides the %select element, but the call to miqInitSelectPicker never happened outside the non-dynamic non-required branch, never rendering the selectpicker component.

now, all selects (including tags) should render in each case, with :multiple correctly set.

Fixes #5279
Cc @d-m-u

Automation > Automate > Customization > Service Dialogs,
click a dialog, see right-side detail

before, if the dialog only has dynamic dropdowns, or only required non-dynamic dropdowns, no dropdown would get shown.

That's because they already have the .selectpicker class which hides the %select element, but the call to miqInitSelectPicker never happened outside the non-dynamic non-required branch, never rendering the selectpicker component.

now, all selects (including tags) should render in each case, with :multiple correctly set.

Fixes #5279
@himdel
Copy link
Contributor Author

himdel commented Jan 21, 2020

dialog with all kinds of non-dynamic dropdowns before:

now:

tags

@himdel
Copy link
Contributor Author

himdel commented Jan 21, 2020

dialog "Transform VM" (hardcoded) before:

now:

transform

@miq-bot
Copy link
Member

miq-bot commented Jan 21, 2020

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/687ba0658a7c26210ca3c81ac8422d9e2a5933b4 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@mzazrivec mzazrivec added this to the Sprint 129 Ending Feb 3, 2020 milestone Jan 24, 2020
@mzazrivec mzazrivec self-assigned this Jan 24, 2020
@mzazrivec mzazrivec merged commit 447c063 into ManageIQ:master Jan 24, 2020
@himdel himdel deleted the dialog-preview-i5279 branch January 27, 2020 13:40
@himdel
Copy link
Contributor Author

himdel commented Apr 6, 2020

simaishi pushed a commit that referenced this pull request Apr 7, 2020
@simaishi
Copy link
Contributor

simaishi commented Apr 7, 2020

Ivanchuk backport details:

$ git log -1
commit 9f4794d2aabfe5a3a3cf88c761d0b90b27dc3db5
Author: Milan Zázrivec <[email protected]>
Date:   Fri Jan 24 11:20:44 2020 +0100

    Merge pull request #6630 from himdel/dialog-preview-i5279

    Dialog sample - fix render dropdowns

    (cherry picked from commit 447c0637360105f73820b5e588b6e683f27f579e)

    https://bugzilla.redhat.com/show_bug.cgi?id=1801862

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.

dialog preview doesn't show anything for dropdowns
4 participants