diff --git a/app/statistics/controller.js b/app/statistics/controller.js index 3a2f4dd41..48acd6fb5 100644 --- a/app/statistics/controller.js +++ b/app/statistics/controller.js @@ -96,6 +96,11 @@ export const StatisticsQueryParams = new QueryParams({ replace: true, refresh: true }, + billed: { + defaultValue: "", + replace: true, + refresh: true + }, type: { defaultValue: Object.keys(TYPES)[0], replace: true, diff --git a/app/statistics/template.hbs b/app/statistics/template.hbs index 6204f2d4e..1345a0f97 100644 --- a/app/statistics/template.hbs +++ b/app/statistics/template.hbs @@ -158,6 +158,21 @@ on-change = (action (mut verified)) }} {{/fs.label}} + {{#fs.label}} + Billed + {{fs.filter 'button' + data-test-filter-billed + selected = billed + valuePath = 'value' + labelPath = 'label' + options = (array + (hash label='All' value='') + (hash label='Billed' value='1') + (hash label='Not Billed' value='0') + ) + on-change = (action (mut billed)) + }} + {{/fs.label}} {{/fs.group}} {{/filter-sidebar}} {{/task-selection}}