From 4d72435209eef39aaaa031314a5799b5a4bbb571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Thu, 24 Sep 2020 09:11:12 +0200 Subject: [PATCH] toast undo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- src/components/cards/CardMenu.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/cards/CardMenu.vue b/src/components/cards/CardMenu.vue index f75e305d8..9ca77564f 100644 --- a/src/components/cards/CardMenu.vue +++ b/src/components/cards/CardMenu.vue @@ -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 })