unless active
el.addClass 'active'
scope = el.data 'scope'
- @enableBar scope
+ @enableBar(scope).done =>
+ @$('.js-filter-unresolved-issues').click() if scope == 'issues'
+ @$('.js-filter-lines-to-cover').click() if scope == 'coverage'
+ @$('.js-filter-duplications').click() if scope == 'duplications'
+ @$('.js-filter-modified-lines').click() if scope == 'scm'
changeSettings: ->
_filterBySCM: () ->
formattedSource = @source.get 'formattedSource'
period = @state.get 'period'
+ @settings.set 'scm', true
unless period?
return @showAllLines()
else
periodDate = period.get 'sinceDate'
- @settings.set 'scm', true
@sourceView.resetShowBlocks()
scmBlockLine = 1
predicate = false