@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<DatetimePicker v-model="copiedCard.duedate" type="datetime" lang="en"
|
<DatetimePicker v-model="copiedCard.duedate" type="datetime" lang="en"
|
||||||
format="YYYY-MM-DD HH:mm" confirm @change="setDue()" />
|
format="YYYY-MM-DD HH:mm" confirm @change="setDue()" />
|
||||||
|
|
||||||
<Actions>
|
<Actions>
|
||||||
<ActionButton v-if="copiedCard.duedate" icon="icon-delete" @click="removeDue()">{{ t('deck', 'Remove due date') }}</ActionButton>
|
<ActionButton v-if="copiedCard.duedate" icon="icon-delete" @click="removeDue()">{{ t('deck', 'Remove due date') }}</ActionButton>
|
||||||
</Actions>
|
</Actions>
|
||||||
@@ -138,12 +138,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
currentCard() {
|
'currentCard': {
|
||||||
this.copiedCard = JSON.parse(JSON.stringify(this.currentCard))
|
immediate: true,
|
||||||
this.allLabels = this.currentCard.labels
|
handler() {
|
||||||
this.assignedUsers = this.currentCard.assignedUsers.map((item) => item.participant)
|
this.copiedCard = JSON.parse(JSON.stringify(this.currentCard))
|
||||||
this.desc = this.currentCard.description
|
this.allLabels = this.currentCard.labels
|
||||||
this.updateRelativeTimestamps()
|
this.assignedUsers = this.currentCard.assignedUsers.map((item) => item.participant)
|
||||||
|
this.desc = this.currentCard.description
|
||||||
|
this.updateRelativeTimestamps()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
desc() {
|
desc() {
|
||||||
|
|||||||
Reference in New Issue
Block a user