Hide quick approve button for draft changes
A draft change cannot be submitted, hence quick approving it is not that important. Hiding the quick approve button on draft changes makes space in the header for displaying more important actions such as 'Publish' (done in a follow-up change). Change-Id: I3319cd7b7e63577d1cdc4c6dce3e888672bd5f29 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
committed by
David Pursehouse
parent
6374815b60
commit
2e7130c4f3
@@ -46,7 +46,7 @@ class QuickApprove extends Button implements ClickHandler {
|
||||
setVisible(false);
|
||||
return;
|
||||
}
|
||||
if (info.revision(commit).is_edit()) {
|
||||
if (info.revision(commit).is_edit() || info.revision(commit).draft()) {
|
||||
setVisible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user