Fixed a stupid bug where clearing filters would cause menu items to be overwritten on the backend.
This commit is contained in:
@@ -33,8 +33,9 @@ export default {
|
|||||||
this.filter1 = 'All Groups'
|
this.filter1 = 'All Groups'
|
||||||
this.filter2 = 'All Roles'
|
this.filter2 = 'All Roles'
|
||||||
this.search = ''
|
this.search = ''
|
||||||
this.unitFilter.id = 1
|
this.unitFilter = this.unitFilters[0];
|
||||||
this.unitFilter.name = 'All Groups'
|
// this.unitFilter.id = 1
|
||||||
|
// this.unitFilter.name = 'All Groups'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -75,11 +76,11 @@ export default {
|
|||||||
|
|
||||||
<Listbox v-model="unitFilter">
|
<Listbox v-model="unitFilter">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<ListboxButton class="bg-gray-dark text-white px-5 rounded-md hover:bg-blue transition-all">
|
<ListboxButton class=" h-11 bg-gray-dark text-white px-5 rounded-md hover:bg-blue transition-all">
|
||||||
{{ unitFilter.name }}
|
{{ unitFilter.name }}
|
||||||
<!-- <Icon icon="carbon:caret-down" /> -->
|
<!-- <Icon icon="carbon:caret-down" /> -->
|
||||||
</ListboxButton>
|
</ListboxButton>
|
||||||
<ListboxOptions class="bg-gray-dark last:rounded-b-md fixed text-white">
|
<ListboxOptions class="bg-gray-dark last:rounded-b-md first:rounded-none fixed text-white">
|
||||||
<ListboxOption v-for="unit in unitFilters" :key="unit.id" :value="unit"
|
<ListboxOption v-for="unit in unitFilters" :key="unit.id" :value="unit"
|
||||||
:disabled="unit.disabled" v-slot="{ active, selected }" class="ui-active:text-white">
|
:disabled="unit.disabled" v-slot="{ active, selected }" class="ui-active:text-white">
|
||||||
<li :class="{ 'bg-blue': active }">
|
<li :class="{ 'bg-blue': active }">
|
||||||
|
|||||||
Reference in New Issue
Block a user