diff --git a/src/components/cards/CardMenu.vue b/src/components/cards/CardMenu.vue index 7709ebacb..514f2d30e 100644 --- a/src/components/cards/CardMenu.vue +++ b/src/components/cards/CardMenu.vue @@ -127,6 +127,7 @@ export default { 'isArchived', 'boards', 'cardActions', + 'stackById', ]), ...mapState({ showArchived: state => state.showArchived, @@ -155,6 +156,18 @@ export default { boardId() { return this.card?.boardId ? this.card.boardId : this.$route.params.id }, + currentCard() { + return this.$store.getters.cardById(this.card.id) + }, + cardRichObject() { + return { + id: '' + this.currentCard.id, + name: this.currentCard.title, + boardname: this.currentBoard.title, + stackname: this.stackById(this.currentCard.stackId)?.title, + link: window.location.protocol + '//' + window.location.host + generateUrl('/apps/deck/') + `#/board/${this.currentBoard.id}/card/${this.currentCard.id}`, + } + }, }, methods: { openCard() {