aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/gate-conditions-empty-view.js
blob: 5be03d5a0c639b0e872f9a826b2e9870b4865f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import _ from 'underscore';
import Marionette from 'backbone.marionette';
import './templates';

export default Marionette.ItemView.extend({
  tagName: 'tr',
  template: Templates['quality-gate-detail-conditions-empty'],

  serializeData: function () {
    return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
      canEdit: this.options.canEdit
    });
  }
});