toast undo

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-09-24 09:11:12 +02:00
parent e360f4f9d9
commit 4d72435209

View File

@@ -75,6 +75,7 @@ import { mapGetters, mapState } from 'vuex'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
import { showUndo } from '@nextcloud/dialogs'
export default {
name: 'CardMenu',
@@ -129,6 +130,7 @@ export default {
},
deleteCard() {
this.$store.dispatch('deleteCard', this.card)
showUndo('undo', this.$store.dispatch('cardUndoDelete', this.card))
},
archiveUnarchiveCard() {
this.$store.dispatch('archiveUnarchiveCard', { ...this.card, archived: !this.card.archived })