This commit is contained in:
lesion
2019-03-20 01:52:48 +01:00
parent f44a78c4e9
commit 3fe3a478b7
10 changed files with 29 additions and 21 deletions

View File

@@ -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

View File

@@ -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: {

View File

@@ -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()
}
}
}

View File

@@ -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)

View File

@@ -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: ``
}