Fix rebase mistake
Block got re-added in Iecf6df041. Initially removed in I87f925ff2. Change-Id: I487d2465b8c412e357795dca6666a8179d2e56f3
This commit is contained in:
parent
1df50058d9
commit
9c15aa96a8
|
@ -97,7 +97,6 @@ limitations under the License.
|
||||||
groups: {
|
groups: {
|
||||||
type: Array,
|
type: Array,
|
||||||
value: function() { return []; },
|
value: function() { return []; },
|
||||||
observer: '_groupsChanged',
|
|
||||||
},
|
},
|
||||||
groupTitles: {
|
groupTitles: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
@ -154,21 +153,6 @@ limitations under the License.
|
||||||
this.groups = [changes];
|
this.groups = [changes];
|
||||||
},
|
},
|
||||||
|
|
||||||
_groupsChanged: function(groups) {
|
|
||||||
for (var i = 0; i < groups.length; i++) {
|
|
||||||
for (var j = 0; j < groups[i].length; j++) {
|
|
||||||
var change = groups[i][j];
|
|
||||||
if (change.labels && change.labels.hasOwnProperty('Code-Review')) {
|
|
||||||
// Transform Code-Review to Code_Review so it is a JS identifier
|
|
||||||
// that can be used in computed properties. This is a hack, but
|
|
||||||
// it'll all have to change to support dynamic label sets anyway.
|
|
||||||
change.labels['Code_Review'] = change.labels['Code-Review'];
|
|
||||||
delete change.labels['Code-Review'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
_groupTitle: function(groupIndex) {
|
_groupTitle: function(groupIndex) {
|
||||||
if (groupIndex > this.groupTitles.length - 1) { return null; }
|
if (groupIndex > this.groupTitles.length - 1) { return null; }
|
||||||
return this.groupTitles[groupIndex];
|
return this.groupTitles[groupIndex];
|
||||||
|
|
Loading…
Reference in New Issue