Files
gerrit/polygerrit-ui/app/elements/shared
Viktar Donich 7f412ae230 Make action order configurable from plugin
``` js
Gerrit.install(function(plugin) {
  // Make cherry-pick appear first.
  plugin.changeActions().setActionPriority(
      'revision', 'cherrypick', -5);
  // Make cherry-pick appear last
  plugin.changeActions().setActionPriority(
      'revision', 'cherrypick', 5);
});
```

Default priority list is:
- Reply is always first, aligned to the left
- More actions if always after it
- Quick approve (CodeReview+2) after them, with priority at -3
- Primary actions come last, with priority of 3
- Change actions before primary, with priority of 2
- Revision actions before change actions, with priority of 1
- In case of a tie, actions are sorted alphabetically

Feature: Issue 5360
Change-Id: I7f36954608f764bff4e36a4a2f916bf0dda3859d
2017-04-21 09:37:44 -07:00
..
2017-04-17 13:49:27 -07:00