add translationPath option to dropdown-select-multiple filter
This commit is contained in:
@@ -15,6 +15,8 @@ ui-dropdown class='right basic labeled icon' action='nothing'
|
||||
each filtered_options as |option|
|
||||
if labelPath
|
||||
ui-checkbox class='item' checked=(contains (get option valuePath) selected) label=(get option labelPath) onChange=(action 'toggle_filter' option)
|
||||
else if translationPath
|
||||
ui-checkbox class='item' checked=(contains option selected) label=(t option scope=translationPath) onChange=(action 'toggle_filter' option)
|
||||
else
|
||||
ui-checkbox class='item' checked=(contains option selected) label=option onChange=(action 'toggle_filter' option)
|
||||
if selected.length
|
||||
|
||||
@@ -6,11 +6,10 @@ ui-dropdown class='right basic labeled icon' action='nothing'
|
||||
.item{action 'set_filter' option}
|
||||
if labelPath
|
||||
= get option labelPath
|
||||
else if translationPath
|
||||
= t option scope=translationPath
|
||||
else
|
||||
if translationPath
|
||||
= t option scope=translationPath
|
||||
else
|
||||
= option
|
||||
= option
|
||||
if has_active_filter_value
|
||||
i.pointable.close.icon{action 'clear_filter'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user