Merge changes I5abaa282,Ifa7701d0,If7ff2115

* changes:
  ChangeScreen2: Support draft changes and draft patch sets
  Allow to delete non current draft patch sets
  Expose UiActions also for non current draft patch sets
This commit is contained in:
Shawn Pearce
2013-09-29 22:34:33 +00:00
committed by Gerrit Code Review
7 changed files with 147 additions and 18 deletions

View File

@@ -822,7 +822,8 @@ public class ChangeJson {
}
}
if (out.isCurrent && has(CURRENT_ACTIONS)
if ((out.isCurrent || out.draft)
&& has(CURRENT_ACTIONS)
&& userProvider.get().isIdentifiedUser()) {
out.actions = Maps.newTreeMap();
for (UiAction.Description d : UiActions.from(