[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: { methods: {
...mapActions(['delEvent']),
copyLink () { copyLink () {
this.copied=true this.copied=true
setTimeout(() => this.copied=false, 3000) setTimeout(() => this.copied=false, 3000)

View File

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