mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
minor on search component
This commit is contained in:
parent
da0216a606
commit
0cbad08c03
1 changed files with 3 additions and 2 deletions
|
@ -25,11 +25,12 @@ v-container.pt-0.pt-md-2
|
||||||
multiple)
|
multiple)
|
||||||
template(v-slot:selection="{ attrs, item }")
|
template(v-slot:selection="{ attrs, item }")
|
||||||
v-chip(v-bind="attrs"
|
v-chip(v-bind="attrs"
|
||||||
|
small
|
||||||
close
|
close
|
||||||
@click:close='remove(item)'
|
@click:close='remove(item)'
|
||||||
:close-icon='mdiCloseCircle')
|
:close-icon='mdiCloseCircle')
|
||||||
v-avatar(left)
|
v-avatar(left)
|
||||||
v-icon(v-text="item.type === 'place' ? mdiMapMarker : mdiTag")
|
v-icon(small v-text="item.type === 'place' ? mdiMapMarker : mdiTag")
|
||||||
span {{ item.label }}
|
span {{ item.label }}
|
||||||
template(v-slot:item='{ item }')
|
template(v-slot:item='{ item }')
|
||||||
v-list-item-avatar
|
v-list-item-avatar
|
||||||
|
@ -76,7 +77,7 @@ export default {
|
||||||
this.items = await this.$axios.$get(`/event/meta?search=${search.target.value}`)
|
this.items = await this.$axios.$get(`/event/meta?search=${search.target.value}`)
|
||||||
}, 100),
|
}, 100),
|
||||||
remove (item) {
|
remove (item) {
|
||||||
this.meta = this.meta.filter(m => m.type !== item.type || m.type === 'place' ? m.id !== item.id : m.tag !== item.tag)
|
this.meta = this.meta.filter(m => m.type !== item.type || m.type === 'place' ? m.id !== item.id : m.label !== item.label)
|
||||||
this.change()
|
this.change()
|
||||||
},
|
},
|
||||||
change (show_recurrent) {
|
change (show_recurrent) {
|
||||||
|
|
Loading…
Reference in a new issue