feat: Interactive deck board widget
Signed-off-by: Julius Härtl <jus@bitgrid.net> fix: Provide relevant app state for widgets Signed-off-by: Julius Härtl <jus@bitgrid.net> fix: Adapt interactive widget Signed-off-by: Julius Härtl <jus@bitgrid.net> chore: fixup Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -212,8 +212,14 @@ export default {
|
||||
if (this.dragging) {
|
||||
return
|
||||
}
|
||||
const boardId = this.card && this.card.boardId ? this.card.boardId : this.$route.params.id
|
||||
this.$router.push({ name: 'card', params: { id: boardId, cardId: this.card.id } }).catch(() => {})
|
||||
const boardId = this.card && this.card.boardId ? this.card.boardId : (this.$route?.params.id ?? this.currentBoard.id)
|
||||
|
||||
if (this.$router) {
|
||||
this.$router.push({ name: 'card', params: { id: boardId, cardId: this.card.id } }).catch(() => {})
|
||||
return
|
||||
}
|
||||
|
||||
this.$root.$emit('open-card', this.card.id)
|
||||
},
|
||||
onTitleBlur(e) {
|
||||
// TODO Handle empty title
|
||||
|
||||
Reference in New Issue
Block a user