Merge branch 'stable-2.8' into stable-2.9
* stable-2.8: Access-control: Adding drafts to examples Hide `refs/heads/` prefix in cherry-pick branch suggestion list Disable "save" button while saving commit message edit Change-Id: Ib8bdf19e8e692025f015f9b85326caf78302ac8e
This commit is contained in:
@@ -76,6 +76,7 @@ class EditMessageBox extends Composite {
|
||||
|
||||
@UiHandler("save")
|
||||
void onSave(ClickEvent e) {
|
||||
save.setEnabled(false);
|
||||
ChangeApi.message(changeId.get(), revision, message.getText().trim(),
|
||||
new GerritCallback<JavaScriptObject>() {
|
||||
@Override
|
||||
|
||||
@@ -93,6 +93,10 @@ public abstract class CherryPickDialog extends ActionDialog {
|
||||
|
||||
@Override
|
||||
public String getDisplayString() {
|
||||
final String refsHeads = "refs/heads/";
|
||||
if (branch.ref().startsWith(refsHeads)) {
|
||||
return branch.ref().substring(refsHeads.length());
|
||||
}
|
||||
return branch.ref();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user