We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10889e1 commit df9ac09Copy full SHA for df9ac09
webcompat/static/js/lib/issues.js
@@ -322,6 +322,10 @@ issues.StateButtonView = Backbone.View.extend({
322
this.model.on('change:state', _.bind(function() {
323
this.render();
324
}, this));
325
+
326
+ this.model.on("change:labels", _.bind(function() {
327
+ this.mainView.labels.renderLabels();
328
+ }, this));
329
},
330
template: _.template($('#state-button-tmpl').html()),
331
render: function() {
webcompat/static/js/lib/models/label-list.js
@@ -65,7 +65,7 @@ issues.LabelList = Backbone.Model.extend({
65
'remoteName': matches[0]
66
};
67
} else {
68
- if (typeof theLabel === 'object') {
+ if (typeof labelsArray[i] === 'object') {
69
list[i] = labelsArray[i];
70
list[i].remoteName = list[i].name;
71
0 commit comments