Update state of table batch actions based on row selection

This fixes the problem where only buttons having the class
"btn-danger" are enabled or disabled based on row selection.
Button state will now be updated for all table batch actions.

Closes-Bug: 1319458
Change-Id: I9f51672781b294abe8385ef9576653ebd6f1bf43
Merge "Update state of table batch actions based on row selection"