Allow editing of commit message from UI.

This change adds a small edit icon on the top right
corner of the commit message box on the change screen.

Clicking it lets the user edit the commit message and a
new patch set will be created.

Change-Id: I2c4d4a3ba520d4c12ade4bb3b47a55ce7f1b19df
This commit is contained in:
Gustaf Lundh
2012-11-16 14:59:02 -08:00
committed by Shawn O. Pearce
parent 5367b8bab5
commit be1636e870
13 changed files with 339 additions and 8 deletions

View File

@@ -36,9 +36,11 @@ public class ChangeDescriptionBlock extends Composite {
initWidget(hp);
}
public void display(Change chg, Boolean starred, PatchSetInfo info,
public void display(Change chg, Boolean starred, Boolean canEditCommitMessage,
PatchSetInfo info,
final AccountInfoCache acc, SubmitTypeRecord submitTypeRecord) {
infoBlock.display(chg, acc, submitTypeRecord);
messageBlock.display(chg.getId(), starred, info.getMessage());
messageBlock.display(chg.currentPatchSetId(), starred,
canEditCommitMessage, info.getMessage());
}
}