Avoid reusing the existing route object to make navigation work properly
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
backportbot[bot]
parent
1e06aef4e6
commit
4be27cc653
@@ -235,9 +235,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const newBoard = await this.$store.dispatch('cloneBoard', this.board)
|
const newBoard = await this.$store.dispatch('cloneBoard', this.board)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
const route = this.routeTo
|
this.$router.push({ name: 'board', params: { id: newBoard.id } })
|
||||||
route.params.id = newBoard.id
|
|
||||||
this.$router.push(route)
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
OC.Notification.showTemporary(t('deck', 'An error occurred'))
|
OC.Notification.showTemporary(t('deck', 'An error occurred'))
|
||||||
console.error(e)
|
console.error(e)
|
||||||
@@ -278,9 +276,7 @@ export default {
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
actionDetails() {
|
actionDetails() {
|
||||||
const route = this.routeTo
|
this.$router.push({ name: 'board.details', params: { id: this.routeTo.id } })
|
||||||
route.name = 'board.details'
|
|
||||||
this.$router.push(route)
|
|
||||||
},
|
},
|
||||||
applyEdit(e) {
|
applyEdit(e) {
|
||||||
this.editing = false
|
this.editing = false
|
||||||
@@ -298,11 +294,6 @@ export default {
|
|||||||
cancelEdit(e) {
|
cancelEdit(e) {
|
||||||
this.editing = false
|
this.editing = false
|
||||||
},
|
},
|
||||||
showSidebar() {
|
|
||||||
const route = this.routeTo
|
|
||||||
route.name = 'board.details'
|
|
||||||
this.$router.push(route)
|
|
||||||
},
|
|
||||||
async updateSetting(key, value) {
|
async updateSetting(key, value) {
|
||||||
this.updateDueSetting = value
|
this.updateDueSetting = value
|
||||||
const setting = {}
|
const setting = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user