Skip to content

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Oct 11, 2016

The toolbar needs to know how many items are currently selected to be able to enable/disable items with the onwhen attribute.

Previously, this was done by calling checkboxClicked which increments/decrements the counter, but that can sometimes lead to inconsistent state (like toolbarCount going to -2).

Adding a method to simply set the counter, since we already do the counting in miq anyway.

Cc @karelhala , @martinpovolny

The toolbar needs to know how many items are currently selected to be able to enable/disable items with the `onwhen` attribute.

Previously, this was done by calling checkboxClicked which increments/decrements the counter, but that can sometimes lead to inconsistent state (like toolbarCount going to -2).

Adding a method to simply set the counter, since we already do the counting in miq anyway.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 90.497% when pulling 056be5c on himdel:toolbar-count into 2eb0318 on ManageIQ:master.

@martinpovolny martinpovolny added this to the Sprint 48 Ending Oct 24, 2016 milestone Oct 12, 2016
@martinpovolny martinpovolny merged commit b3a6964 into ManageIQ:master Oct 12, 2016
@himdel himdel deleted the toolbar-count branch October 13, 2016 08:38
@himdel
Copy link
Contributor Author

himdel commented Oct 13, 2016

Released v0.0.8

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.

3 participants