Change rendering approach in users filters
This commit is contained in:
parent
9c8dd06780
commit
d67f450511
1 changed files with 7 additions and 28 deletions
|
@ -7,15 +7,13 @@
|
||||||
multiple
|
multiple
|
||||||
class="select-field"
|
class="select-field"
|
||||||
@change="toggleFilters">
|
@change="toggleFilters">
|
||||||
<el-option-group
|
<el-option-group :label="$t('usersFilter.byUserType')">
|
||||||
v-for="group in filters"
|
<el-option value="local">{{ $t('usersFilter.local') }}</el-option>
|
||||||
:key="group.label"
|
<el-option value="external">{{ $t('usersFilter.external') }}</el-option>
|
||||||
:label="group.label">
|
</el-option-group>
|
||||||
<el-option
|
<el-option-group :label="$t('usersFilter.byStatus')">
|
||||||
v-for="item in group.options"
|
<el-option value="active">{{ $t('usersFilter.active') }}</el-option>
|
||||||
:key="item.value"
|
<el-option value="deactivated">{{ $t('usersFilter.deactivated') }}</el-option>
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-option-group>
|
</el-option-group>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
|
@ -24,25 +22,6 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
filters: [{
|
|
||||||
label: this.$i18n.t('usersFilter.byUserType'),
|
|
||||||
options: [{
|
|
||||||
label: this.$i18n.t('usersFilter.local'),
|
|
||||||
value: 'local'
|
|
||||||
}, {
|
|
||||||
label: this.$i18n.t('usersFilter.external'),
|
|
||||||
value: 'external'
|
|
||||||
}]
|
|
||||||
}, {
|
|
||||||
label: this.$i18n.t('usersFilter.byStatus'),
|
|
||||||
options: [{
|
|
||||||
label: this.$i18n.t('usersFilter.active'),
|
|
||||||
value: 'active'
|
|
||||||
}, {
|
|
||||||
label: this.$i18n.t('usersFilter.deactivated'),
|
|
||||||
value: 'deactivated'
|
|
||||||
}]
|
|
||||||
}],
|
|
||||||
value: []
|
value: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue