Merge pull request #2924 from nextcloud/backport/2923/stable1.3

[stable1.3] Avoid reusing the existing route object to make navigation work properly
This commit is contained in:
Julius Härtl
2021-03-29 14:13:24 +02:00
committed by GitHub

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 = {}