fix #31
This commit is contained in:
@@ -144,7 +144,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
placeSelected (items) {
|
||||
console.log('dentro place selected ', items, items.length)
|
||||
if (items.length === 0 ) {
|
||||
this.place.name = this.place.address = ''
|
||||
return
|
||||
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
components: { Event, Calendar, Search },
|
||||
watch: {
|
||||
filteredEvents () {
|
||||
this.$nextTick( this.$refs.magicgrid.positionItems)
|
||||
this.$nextTick(this.$refs.magicgrid.positionItems)
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template lang='pug'>
|
||||
b-modal(@shown="$refs.email.focus()" :title='$t("Login")' hide-footer
|
||||
@hidden='$router.replace("/")' :visible='true')
|
||||
@hidden='$router.replace("/")' :visible='true' ref='modal')
|
||||
el-form
|
||||
p {{$t('login_explanation')}}
|
||||
el-input.mb-2(v-model='email' type='email' :placeholder='$t("Email")' autocomplete='email' ref='email')
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
Message({ message: this.$t('login error'), type: 'error' })
|
||||
}
|
||||
this.email = this.password = ''
|
||||
this.$router.replace("/")
|
||||
this.$refs.modal.hide()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ import api from '@/api'
|
||||
import { mapActions, mapState } from 'vuex'
|
||||
import moment from 'dayjs'
|
||||
import Calendar from './Calendar'
|
||||
import { Message } from 'element-ui'
|
||||
export default {
|
||||
components: { Calendar },
|
||||
data() {
|
||||
@@ -201,11 +202,11 @@ export default {
|
||||
await this.updateEvent(formData)
|
||||
} else {
|
||||
await this.addEvent(formData)
|
||||
// this.$router.push('/')
|
||||
}
|
||||
this.updateMeta()
|
||||
this.sending = false
|
||||
this.$refs.modal.hide()
|
||||
Message({ type: 'success', message: this.logged ? this.$t('new_event_added') : this.$t('new_anon_event_added')})
|
||||
} catch (e) {
|
||||
this.sending = false
|
||||
console.error(e)
|
||||
|
||||
@@ -87,6 +87,8 @@ const it = {
|
||||
<br/>Prima di poter pubblicare <strong>dobbiamo approvare l'account</strong>, considera che <strong>dietro questo sito ci sono delle persone</strong> di
|
||||
carne e sangue, scrivici quindi due righe per farci capire che eventi vorresti pubblicare.`,
|
||||
'Not registered?': `Non sei registrata?`,
|
||||
new_event_added: `Evento aggiunto.`,
|
||||
new_anon_event_added: `Evento inserito, verrà confermato quanto prima.`,
|
||||
login_explanation: ``
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user