Label: Make the meaning of the blank cell visible
On changes dashboard the label columns often have some blank cells
especially when user has some customized label for some special branch.
[1] some of them mean for current change this label is not applicable.
[2] some of them mean this label is applied on this change's branch but
this change has not got any vote on this label yet.
In order to figure out what a blank cell means, a user has to click that row
to open the ChangeScreen and check the approval table.
This commit makes it easy to distinguish these blank cells by setting
blank cells matching case [1] to display grey background and have a title
'Label not applicable'.
Even for the case where all labels are project-specific, this feature is
valuable.
Change-Id: Ic965ad51f60919ecf1d3cefb9456271950d51302
This commit is contained in:
@@ -230,7 +230,8 @@ public class ChangeTable2 extends NavigationTable<ChangeInfo> {
|
||||
|
||||
LabelInfo label = c.label(name);
|
||||
if (label == null) {
|
||||
table.clearCell(row, col);
|
||||
fmt.getElement(row, col).setTitle(Gerrit.C.labelNotApplicable());
|
||||
fmt.addStyleName(row, col, Gerrit.RESOURCES.css().labelNotApplicable());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user