aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/coffee/component-viewer/header/duplications-header.coffee
blob: 94d72056bf78992cc0333ebbd0bbd342ef80478d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
define [
  'backbone.marionette'
  'templates/component-viewer'
  'component-viewer/header/base-header'
], (
  Marionette
  Templates
  BaseHeaderView
) ->


  class extends BaseHeaderView
    template: Templates['duplications-header']


    events:
      'click .js-filter-duplications': 'filterByDuplications'


    filterByDuplications: (e) -> @header.filterLines e, 'filterByDuplications'