fix: wrong filtering on circle admin

This commit is contained in:
Jean-Baptiste Pasquier 2021-04-01 14:35:09 +02:00
parent 4860b20e20
commit 5f97a261dc
1 changed files with 8 additions and 5 deletions

View File

@ -22,13 +22,14 @@ div.segment.full.padding-large.padding-top-medium.padding-bottom-xsmall.sm-paddi
solid-form-search.form.search-form.search-button( solid-form-search.form.search-form.search-button(
id=`admin-circle-filter-${page}` id=`admin-circle-filter-${page}`
fields='name' fields='searchname'
label-name='' search-searchname='name, circle.name'
widget-name='solid-form-label-text' label-searchname=''
class-name="segment margin-bottom-medium sm-margin-bottom-none third sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" widget-searchname='solid-form-label-text'
class-searchname="segment margin-bottom-medium sm-margin-bottom-none third sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading"
submit-button="" submit-button=""
submit-widget="button" submit-widget="button"
data-trans='label-name=circle.list.searchBy;submit-button=circle.list.searchButton' data-trans='label-searchname=circle.list.searchBy;submit-button=circle.list.searchButton'
) )
ul(class='segment full margin-top-xsmall sm-margin-top-none sm-padding-none whitespace-normal tabs text-disable-selection') ul(class='segment full margin-top-xsmall sm-margin-top-none sm-padding-none whitespace-normal tabs text-disable-selection')
@ -41,6 +42,7 @@ div.segment.full.padding-large.padding-top-medium.padding-bottom-xsmall.sm-paddi
data-src=`${getComponent('circles').endpoints.get}joinable/` data-src=`${getComponent('circles').endpoints.get}joinable/`
fields="" fields=""
counter-template="(${counter})" counter-template="(${counter})"
filtered-by=`admin-circle-filter-${page}`
) )
li(class='segment sm-full text-xlarge text-color-heading text-letter-spacing-large margin-left-medium sm-margin-left-none') li(class='segment sm-full text-xlarge text-color-heading text-letter-spacing-large margin-left-medium sm-margin-left-none')
solid-link(class='segment sm-full sm-padding-xsmall tab' next=`admin-${getRoute('circles', true)}-leave`)&attributes({'class': page == 'leave' ? 'active' : false}) solid-link(class='segment sm-full sm-padding-xsmall tab' next=`admin-${getRoute('circles', true)}-leave`)&attributes({'class': page == 'leave' ? 'active' : false})
@ -52,4 +54,5 @@ div.segment.full.padding-large.padding-top-medium.padding-bottom-xsmall.sm-paddi
nested-field="circles" nested-field="circles"
fields="" fields=""
counter-template="(${counter})" counter-template="(${counter})"
filtered-by=`admin-circle-filter-${page}`
) )