Skip to content

Commit

Permalink
Remove record-filter component
Browse files Browse the repository at this point in the history
  • Loading branch information
nummi committed Sep 22, 2019
1 parent efa121b commit 1ee1480
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
8 changes: 0 additions & 8 deletions app/components/record-filter.js

This file was deleted.

1 change: 0 additions & 1 deletion app/templates/components/record-filter.hbs

This file was deleted.

24 changes: 9 additions & 15 deletions app/templates/records-toolbar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,18 @@
<Ui::ToolbarDivider />

<button
class="{{if noFilterValue "active"}} toolbar__radio js-filter"
{{action "setFilter"}}
class="{{if (is-empty this.filterValue) "active"}} toolbar__radio js-filter"
{{on "click" (fn this.setFilter "")}}
>
All
</button>

{{#each filters as |item|}}
{{#record-filter
model=item
filterValue=filterValue
as |filter|
}}
<button
class="{{if filter.checked "active"}} toolbar__radio js-filter"
{{action "setFilter" filter.model.name}}
>
{{filter.model.desc}}
</button>
{{/record-filter}}
{{#each this.filters as |filter|}}
<button
class="{{if (eq this.filterValue filter.name) "active"}} toolbar__radio js-filter"
{{on "click" (fn this.setFilter filter.name)}}
>
{{filter.desc}}
</button>
{{/each}}
</div>

0 comments on commit 1ee1480

Please sign in to comment.