[fix] delete event

This commit is contained in:
les 2019-10-24 15:19:48 +02:00
parent 4eff9acbc3
commit ecd3f1bd05
2 changed files with 2 additions and 1 deletions

View file

@ -176,7 +176,6 @@ export default {
}
},
methods: {
...mapActions(['delEvent']),
copyLink () {
this.copied=true
setTimeout(() => this.copied=false, 3000)

View file

@ -9,11 +9,13 @@ el-menu
</template>
<script>
import { MessageBox } from 'element-ui'
import { mapActions } from 'vuex'
export default {
name: 'EventAdmin',
props: ['event'],
methods: {
...mapActions(['delEvent']),
async remove () {
try {
await MessageBox.confirm(this.$t('event.remove_confirmation'), this.$t('common.confirm'), {