Compare commits

...

5 Commits

Author SHA1 Message Date
Julius Härtl
a14a33d69c Bump version to 1.2.6
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-07 18:43:30 +02:00
Julius Härtl
fd968d95d7 Merge pull request #2947 from nextcloud/backport/2793/stable1.2
[stable1.2] fix desc save bug
2021-04-07 18:41:27 +02:00
Jakob Röhrl
a34c3b0667 fix desc save bug
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
2021-04-07 08:38:15 +02:00
Julius Härtl
418536ceb1 Merge pull request #2925 from nextcloud/backport/2923/stable1.2
[stable1.2] Avoid reusing the existing route object to make navigation work properly
2021-03-29 14:13:18 +02:00
Julius Härtl
4be27cc653 Avoid reusing the existing route object to make navigation work properly
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-29 12:00:47 +00:00
5 changed files with 15 additions and 16 deletions

View File

@@ -1,6 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.
## 1.2.6 - 2021-04-07
### Fixed
* [#2925](https://github.com/nextcloud/deck/pull/2925) Avoid reusing the existing route object to make navigation work properly
* [#2947](https://github.com/nextcloud/deck/pull/2947) Fix bug when saving the description
## 1.2.5 - 2021-03-05
### Fixed

View File

@@ -17,7 +17,7 @@
- 🚀 Get your project organized
</description>
<version>1.2.5</version>
<version>1.2.6</version>
<licence>agpl</licence>
<author>Julius Härtl</author>
<namespace>Deck</namespace>

View File

@@ -117,7 +117,7 @@
type="deck-card" />
</div>
<Description :key="card.id" :card="card" />
<Description :key="card.id" :card="card" @change="descriptionChanged" />
</div>
</template>
@@ -234,6 +234,9 @@ export default {
this.initialize()
},
methods: {
descriptionChanged(newDesc) {
this.copiedCard.description = newDesc
},
async initialize() {
if (!this.card) {
return
@@ -253,9 +256,6 @@ export default {
}
},
setDue() {
this.$store.dispatch('updateCardDue', this.copiedCard)
},
removeDue() {
this.copiedCard.duedate = null
this.$store.dispatch('updateCardDue', this.copiedCard)

View File

@@ -205,6 +205,7 @@ export default {
await this.$store.dispatch('updateCardDesc', { ...this.card, description: this.description })
this.descriptionLastEdit = 0
this.descriptionSaving = false
this.$emit('change', this.description)
},
updateDescription() {
this.descriptionLastEdit = Date.now()

View File

@@ -235,9 +235,7 @@ export default {
try {
const newBoard = await this.$store.dispatch('cloneBoard', this.board)
this.loading = false
const route = this.routeTo
route.params.id = newBoard.id
this.$router.push(route)
this.$router.push({ name: 'board', params: { id: newBoard.id } })
} catch (e) {
OC.Notification.showTemporary(t('deck', 'An error occurred'))
console.error(e)
@@ -278,9 +276,7 @@ export default {
)
},
actionDetails() {
const route = this.routeTo
route.name = 'board.details'
this.$router.push(route)
this.$router.push({ name: 'board.details', params: { id: this.routeTo.id } })
},
applyEdit(e) {
this.editing = false
@@ -298,11 +294,6 @@ export default {
cancelEdit(e) {
this.editing = false
},
showSidebar() {
const route = this.routeTo
route.name = 'board.details'
this.$router.push(route)
},
async updateSetting(key, value) {
this.updateDueSetting = value
const setting = {}