This commit is contained in:
les 2020-01-15 23:56:28 +01:00
parent b91b54fc46
commit ad133dc7e9
2 changed files with 11 additions and 11 deletions

View file

@ -18,16 +18,11 @@ import { mapState } from 'vuex'
import Event from '../../components/Event'
export default {
layout: 'event_iframe',
layout: 'iframe',
components: { Event },
data () {
return {
loading: true
}
},
async asyncData ({ $axios, params, error, store }) {
try {
const [ id, start_datetime ] = params.event_id.split('_')
const [id, start_datetime] = params.event_id.split('_')
const event = await $axios.$get(`/event/${id}`)
event.start_datetime = start_datetime ? Number(start_datetime) : event.start_datetime
return { event, id: Number(id) }
@ -35,6 +30,11 @@ export default {
error({ statusCode: 404, message: 'Event not found' })
}
},
data () {
return {
loading: true
}
},
computed: {
...mapState(['settings']),
date () {
@ -61,6 +61,8 @@ export default {
*/
</script>
<style lang='less'>
.embed_event{
a {
transition: margin .1s;
}
@ -107,7 +109,7 @@ a:hover {
// transition: all .2s;
margin: 0px;
}
}
// .embed_event:hover {
// transform: scale(1.03);
// }

View file

@ -53,8 +53,6 @@
small {{event.boost.length}}<br/>
strong(v-if='settings.enable_resources') {{$tc('common.resources', event.resources.length)}} -
small {{$t('event.interact_with_me_at')}}
small {{$t('event.interact_with_me_at')}}
small {{$t('event.interact_with_me_at')}}
el-button(type='text' size='mini' @click='showFollowMe=true') @{{settings.instance_name}}@{{settings.baseurl|url2host}}