Compare commits
1 Commits
draggable
...
bugfix/ope
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b92f2760d |
@@ -145,19 +145,18 @@ export default {
|
|||||||
titleEditing: '',
|
titleEditing: '',
|
||||||
hasActivity: capabilities && capabilities.activity,
|
hasActivity: capabilities && capabilities.activity,
|
||||||
locale: getLocale(),
|
locale: getLocale(),
|
||||||
|
currentCard: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
currentBoard: state => state.currentBoard,
|
currentBoard: state => state.currentBoard,
|
||||||
|
cards: state => state.card.cards,
|
||||||
}),
|
}),
|
||||||
...mapGetters(['canEdit', 'assignables', 'cardActions', 'stackById']),
|
...mapGetters(['canEdit', 'assignables', 'cardActions', 'stackById', 'cardById']),
|
||||||
title() {
|
title() {
|
||||||
return this.titleEditable ? this.titleEditing : this.currentCard.title
|
return this.titleEditable ? this.titleEditing : this.currentCard.title
|
||||||
},
|
},
|
||||||
currentCard() {
|
|
||||||
return this.$store.getters.cardById(this.id)
|
|
||||||
},
|
|
||||||
subtitle() {
|
subtitle() {
|
||||||
return t('deck', 'Modified') + ': ' + this.relativeDate(this.currentCard.lastModified * 1000) + ' ⸱ ' + t('deck', 'Created') + ': ' + this.relativeDate(this.currentCard.createdAt * 1000)
|
return t('deck', 'Modified') + ': ' + this.relativeDate(this.currentCard.lastModified * 1000) + ' ⸱ ' + t('deck', 'Created') + ': ' + this.relativeDate(this.currentCard.createdAt * 1000)
|
||||||
},
|
},
|
||||||
@@ -182,6 +181,19 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
cards() {
|
||||||
|
if (!this.currentCard) {
|
||||||
|
this.currentCard = this.cardById(this.id)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
id() {
|
||||||
|
this.currentCard = this.cardById(this.id)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.currentCard = this.cardById(this.id)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleUpdateTitleEditable(value) {
|
handleUpdateTitleEditable(value) {
|
||||||
this.titleEditable = value
|
this.titleEditable = value
|
||||||
|
|||||||
Reference in New Issue
Block a user