\n\n\n` }, link () { const typeMap = ['rss', 'ics', 'list'] const params = [] if (this.filters.tags.length) { params.push(`tags=${this.filters.tags.join(',')}`) } if (this.filters.places.length) { params.push(`places=${this.filters.places.join(',')}`) } if (this.filters.show_recurrent) { params.push('show_recurrent=true') } return `${this.settings.baseurl}/feed/${typeMap[this.type]}?${params.join('&')}` }, showLink () { return (['rss', 'ics'].includes(this.type)) } }, methods: { async add_notification () { // validate() // 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.media && event.media[0].url } } }