wingedmonkey/wingedmonkey — pull request #218 by jtomasek (2013-02-14 12:44:13+00:00)
Title: States polishing

1. Disable buttons based on available_actions instead of hiding them.
Added _controls partial as provider specific partial.
This is because available actions are used for disabling the buttons instead of hiding them.
To display only buttons that are available for provider, I had to create provider specific partials.

2. All transition states are wm_pemding now, wm_penging has no actions a varilable (all buttons disabled), added restoring_state in ovirt to wm_pending.

3. Set the wm_state in controller to change state to pending (transition) then api call is sent and response sets the wm_state pending in view and disables the buttons. Removed setting transition state in js controller.

My next step is to disable all buttons when one of them is clicked. This will get us rid of the possibility to click other button while action is executing.

The result of all these changes will be _functional_ state transitions.