blob: bbe12185686a252251f33bc3d53d45ac98223d3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import _ from 'underscore';
import BaseFacet from './base-facet';
import Template from '../templates/facets/issues-mode-facet.hbs';
export default BaseFacet.extend({
template: Template,
events: {
'change [name="issues-page-mode"]': 'onModeChange'
},
onModeChange: function () {
var mode = this.$('[name="issues-page-mode"]:checked').val();
this.options.app.state.updateFilter({ facetMode: mode });
},
serializeData: function () {
return _.extend(this._super(), { mode: this.options.app.state.getFacetMode() });
}
});
|