minor
This commit is contained in:
parent
313b8c2afb
commit
41a1805e65
4 changed files with 699 additions and 958 deletions
|
@ -8,7 +8,6 @@ v-col(cols=12)
|
|||
|
||||
p {{ $t(`event.${type}_description`) }}
|
||||
|
||||
p {{value}}
|
||||
|
||||
v-btn-toggle.v-col-6.flex-column.flex-sm-row(v-if='type === "recurrent"' color='primary' :value='value.recurrent.frequency' @change='fq => change("frequency", fq)')
|
||||
v-btn(v-for='f in frequencies' :key='f.value' :value='f.value') {{ f.text }}
|
||||
|
|
|
@ -11,8 +11,8 @@ v-row.mb-4
|
|||
@input.native='search'
|
||||
persistent-hint
|
||||
:value='value.name'
|
||||
item-text='name'
|
||||
:items="places"
|
||||
@focus='search'
|
||||
@change='selectPlace')
|
||||
template(v-slot:item="{ item, attrs, on }")
|
||||
v-list-item(v-bind='attrs' v-on='on')
|
||||
|
@ -38,6 +38,7 @@ v-row.mb-4
|
|||
:label="$t('common.address')"
|
||||
:rules="[ v => disableAddress ? true : $validators.required('common.address')(v)]"
|
||||
:value='value.address'
|
||||
item-text='address'
|
||||
persistent-hint hide-no-data clearable no-filter
|
||||
:loading='loading'
|
||||
@change='selectAddress'
|
||||
|
@ -130,11 +131,13 @@ export default {
|
|||
},
|
||||
selectPlace (p) {
|
||||
if (!p) { return }
|
||||
console.error('dentro select place ', p)
|
||||
if (typeof p === 'object' && !p.create) {
|
||||
if (p.id === this.value.id) return
|
||||
console.error('quindi sono qui dentro !')
|
||||
this.place.name = p.name
|
||||
this.place.address = p.address
|
||||
if (this.settings.allow_geolocation) {
|
||||
this.place.details = p.details
|
||||
this.place.latitude = p.latitude
|
||||
this.place.longitude = p.longitude
|
||||
}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
<template lang="pug">
|
||||
v-container.px-2.px-sm-6.pt-0
|
||||
div(v-if='collections.length')
|
||||
v-btn.mr-2(outlined v-for='collection in collections' color='primary' :key='collection.id' :to='`/collection/${collection.name}`') {{collection.name}}
|
||||
|
||||
//- Announcements
|
||||
#announcements.mt-2.mt-sm-4(v-if='announcements.length')
|
||||
Announcement(v-for='announcement in announcements' :key='`a_${announcement.id}`' :announcement='announcement')
|
||||
|
||||
div.mt-2.mt-sm-4(v-if='collections.length')
|
||||
v-btn.mr-2(outlined v-for='collection in collections' color='primary' :key='collection.id' :to='`/collection/${encodeURIComponent(collection.name)}`') {{collection.name}}
|
||||
|
||||
//- Calendar and search bar
|
||||
//- v-row.ma-2(v-if='!settings.hide_calendar')
|
||||
//- .calh.col-xl-5.col-lg-5.col-md-7.col-sm-10.col-xs-12.pa-0.mx-sm-2.mx-0.my-0.mt-sm-2
|
||||
|
|
Loading…
Reference in a new issue