Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
feat(statistics): add billed flag to statistics filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Yelinz authored and Stefan committed Apr 15, 2021
1 parent b6cd007 commit 53a7830
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/statistics/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
15 changes: 15 additions & 0 deletions app/statistics/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 53a7830

Please sign in to comment.