Files
gerrit/polygerrit-ui/app/scripts
David Ostrovsky f9b89d27c1 Render change actions
Adds change actions in addition to revision actions. Currently, only
abandon and restore change actions are considered. Other actions
require additional user input, like follow-up and thus not supported
yet.

Compared to revision actions that retrieved with their own endpoint,
change actions are based on the response of GET /changes/<id>/details
REST handler. This data is passed in to the change-actions element
from change view.

Plugin can contribute change and revision actions as well, so that we
would have to provide generic way to render the actions and not hard
code them. Support for actions exposed by plugins should be added
later.

Test Plan:

Abandon or Restore action should be rendered when user is logged in.
Change actions are rendered on every patch set of the change, switch
to older patch set, Abandon or Restore button should be rendered as
well compared to revision actions, where the actions mostly only make
sense for the current patch set.

Change-Id: Ie90e1a2d44cbc677bf41b026f08a8a1d16a867cd
2016-01-29 11:38:27 +00:00
..
2016-01-29 11:38:27 +00:00
2015-12-01 14:11:18 -05:00