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

miqSetToolbarCount - fix setting toolbar counts #5403

Merged
merged 1 commit into from
Apr 4, 2019
Merged

miqSetToolbarCount - fix setting toolbar counts #5403

merged 1 commit into from
Apr 4, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Apr 1, 2019

Compute > Infrastructure > VMs
pick a VM with a parent/child (vm.add_parent(other_vm); vm.save!)
click Genealogy in textual summary
check 2 checkboxes
the compare toolbar button should work now

miqSetButtons is not only called for toolbars, but also fake toolbars,
so, we can't always update the toolbar count when nonzero.

But for specific cases we can - so splitting the functionality into miqSetToolbarCount,
which will always set the count for toolbars.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1694712
Fixes #64

miqSetButtons is not only called for toolbars, but also fake toolbars,
so, we can't always update the toolbar count when nonzero.

But for specific cases we can - so splitting the functionality into miqSetToolbarCount,
which will always set the count for toolbars.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1694712
@himdel
Copy link
Contributor Author

himdel commented Apr 1, 2019

Cc @skateman :)

Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Seal of Approval

@miq-bot
Copy link
Member

miq-bot commented Apr 1, 2019

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/b063791e41cd02b1d30d2cfc30e81108d0bf07f3 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@mzazrivec mzazrivec self-assigned this Apr 2, 2019
@mzazrivec mzazrivec added this to the Sprint 109 Ending Apr 15, 2019 milestone Apr 4, 2019
@mzazrivec mzazrivec merged commit adf2754 into ManageIQ:master Apr 4, 2019
@himdel himdel deleted the fix-buttons-genealogy branch April 4, 2019 10:00
simaishi pushed a commit that referenced this pull request Apr 22, 2019
miqSetToolbarCount - fix setting toolbar counts

(cherry picked from commit adf2754)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1702066
@simaishi
Copy link
Contributor

Hammer backport details:

$ git log -1
commit 4bc1e12fca09a65325011a01157f397bbacad7b0
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Thu Apr 4 11:13:45 2019 +0200

    Merge pull request #5403 from himdel/fix-buttons-genealogy
    
    miqSetToolbarCount - fix setting toolbar counts
    
    (cherry picked from commit adf27547d2997c7aaa723380a8c8a4235ee4417e)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1702066

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.

Compare button in toolbar is not working
5 participants