ChangeScreen2: Only allow label scores on current revision
Do not display labels for scoring on a non-current revision. This is confusing as there is relatively little to be gained from scoring an out of date revision on a change. Change-Id: Ib76a918f20becbde191b50892395ccb1992ee093
This commit is contained in:
@@ -48,8 +48,9 @@ class ReplyAction {
|
||||
this.style = style;
|
||||
this.replyButton = replyButton;
|
||||
|
||||
boolean current = revision.equals(info.current_revision());
|
||||
allLabels = info.all_labels();
|
||||
permittedLabels = info.has_permitted_labels()
|
||||
permittedLabels = current && info.has_permitted_labels()
|
||||
? info.permitted_labels()
|
||||
: NativeMap.<JsArrayString> create();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user