Compare commits
7 Commits
enh/dashbo
...
enh/ToastU
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d72435209 | ||
|
|
e360f4f9d9 | ||
|
|
ff14afbe11 | ||
|
|
b9d2e9c791 | ||
|
|
a1bd13d960 | ||
|
|
6d5ddd4e2c | ||
|
|
a34e8feb33 |
@@ -75,6 +75,7 @@ import { mapGetters, mapState } from 'vuex'
|
|||||||
import axios from '@nextcloud/axios'
|
import axios from '@nextcloud/axios'
|
||||||
import { generateUrl } from '@nextcloud/router'
|
import { generateUrl } from '@nextcloud/router'
|
||||||
import { getCurrentUser } from '@nextcloud/auth'
|
import { getCurrentUser } from '@nextcloud/auth'
|
||||||
|
import { showUndo } from '@nextcloud/dialogs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CardMenu',
|
name: 'CardMenu',
|
||||||
@@ -129,6 +130,7 @@ export default {
|
|||||||
},
|
},
|
||||||
deleteCard() {
|
deleteCard() {
|
||||||
this.$store.dispatch('deleteCard', this.card)
|
this.$store.dispatch('deleteCard', this.card)
|
||||||
|
showUndo('undo', this.$store.dispatch('cardUndoDelete', this.card))
|
||||||
},
|
},
|
||||||
archiveUnarchiveCard() {
|
archiveUnarchiveCard() {
|
||||||
this.$store.dispatch('archiveUnarchiveCard', { ...this.card, archived: !this.card.archived })
|
this.$store.dispatch('archiveUnarchiveCard', { ...this.card, archived: !this.card.archived })
|
||||||
|
|||||||
Reference in New Issue
Block a user