From b77339cbf1333acc46b929f13b13b1ee81b5bdc8 Mon Sep 17 00:00:00 2001 From: les Date: Wed, 28 Oct 2020 01:27:58 +0100 Subject: [PATCH] readd event confirmation in admin --- components/admin/Events.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/components/admin/Events.vue b/components/admin/Events.vue index 7b19390a..a1a19a19 100644 --- a/components/admin/Events.vue +++ b/components/admin/Events.vue @@ -7,15 +7,14 @@ :items='unconfirmedEvents' :headers='headers') template(v-slot:item.actions='{ item }') - v-btn(text small @click.stop='toggle(item)' - :color='item.visible?"warning":"success"') {{item.visible?$t('common.disable'):$t('common.enable')}} - v-btn(text small @click='edit(item)') {{$t('common.edit')}} + v-btn(text small @click='confirm(item)' color='success') {{$t('common.confirm')}} + v-btn(text small :to='`/event/${item.id}`' color='success') {{$t('common.preview')}} + v-btn(text small :to='`/add/${item.id}`' color='warning') {{$t('common.edit')}} v-btn(text small @click='remove(item)' color='error') {{$t('common.delete')}}