minor
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
el-main
|
el-main
|
||||||
h4 <nuxt-link to='/'><img src='/favicon.ico'/></nuxt-link> {{$t('common.export')}}
|
|
||||||
|
|
||||||
p {{$t('export.intro')}}
|
p {{$t('export.intro')}}
|
||||||
Search
|
//- Search
|
||||||
el-tabs.mt-2(v-model='type')
|
el-tabs.mt-2(v-model='type')
|
||||||
|
|
||||||
//- TOFIX
|
//- TOFIX
|
||||||
@@ -60,41 +58,19 @@ import Search from '@/components/Search'
|
|||||||
import { Message } from 'element-ui'
|
import { Message } from 'element-ui'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Export',
|
name: 'Exports',
|
||||||
components: { List, Search },
|
components: { List, Search },
|
||||||
head () {
|
|
||||||
return {
|
|
||||||
title: `${this.settings.title} - ${this.$t('common.export')}`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
type: 'rss',
|
|
||||||
notification: { email: '' },
|
|
||||||
list: { title: 'Gancio' }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
async asyncData ({ $axios, params, store }) {
|
async asyncData ({ $axios, params, store }) {
|
||||||
// get metadata just in case we are not coming from home
|
// get metadata just in case we are not coming from home
|
||||||
if (store.state.tags.length) { return }
|
if (store.state.tags.length) { return }
|
||||||
const { tags, places } = await $axios.$get('/event/meta')
|
const { tags, places } = await $axios.$get('/event/meta')
|
||||||
store.commit('update', { tags, places })
|
store.commit('update', { tags, places })
|
||||||
},
|
},
|
||||||
methods: {
|
data () {
|
||||||
copyLink () {
|
return {
|
||||||
Message({ message: this.$t('common.copied'), type: 'success' })
|
type: 'rss',
|
||||||
},
|
notification: { email: '' },
|
||||||
async add_notification () {
|
list: { title: 'Gancio' }
|
||||||
if (!this.notification.email) {
|
|
||||||
Message({ message: 'Inserisci una mail', showClose: true, type: 'error' })
|
|
||||||
// return this.$refs.email.focus()
|
|
||||||
}
|
|
||||||
// await api.addNotification({ ...this.notification, filters: this.filters})
|
|
||||||
// this.$refs.modal.hide()
|
|
||||||
Message({ message: this.$t('email_notification_activated'), showClose: true, type: 'success' })
|
|
||||||
},
|
|
||||||
imgPath (event) {
|
|
||||||
return event.image_path && event.image_path
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -135,6 +111,28 @@ export default {
|
|||||||
showLink () {
|
showLink () {
|
||||||
return (['rss', 'ics'].includes(this.type))
|
return (['rss', 'ics'].includes(this.type))
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
copyLink () {
|
||||||
|
Message({ message: this.$t('common.copied'), type: 'success' })
|
||||||
|
},
|
||||||
|
add_notification () {
|
||||||
|
if (!this.notification.email) {
|
||||||
|
Message({ message: 'Inserisci una mail', showClose: true, type: 'error' })
|
||||||
|
// return this.$refs.email.focus()
|
||||||
|
}
|
||||||
|
// await api.addNotification({ ...this.notification, filters: this.filters})
|
||||||
|
// this.$refs.modal.hide()
|
||||||
|
Message({ message: this.$t('email_notification_activated'), showClose: true, type: 'success' })
|
||||||
|
},
|
||||||
|
imgPath (event) {
|
||||||
|
return event.image_path && event.image_path
|
||||||
|
}
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: `${this.settings.title} - ${this.$t('common.export')}`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user