diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/gates-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/gates-view.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/gates-view.js b/server/sonar-web/src/main/js/apps/quality-gates/gates-view.js new file mode 100644 index 00000000000..2fa1ceb6d18 --- /dev/null +++ b/server/sonar-web/src/main/js/apps/quality-gates/gates-view.js @@ -0,0 +1,25 @@ +define([ + './gate-view', + './templates' +], function (ItemView) { + + return Marionette.CompositeView.extend({ + className: 'list-group', + template: Templates['quality-gates-gates'], + itemView: ItemView, + itemViewContainer: '.js-list', + + itemViewOptions: function (model) { + return { + collectionView: this, + highlighted: model.id === this.highlighted + }; + }, + + highlight: function (id) { + this.highlighted = id; + this.render(); + }, + }); + +}); |