Skip to content

Commit 40093a1

Browse files
committed
frontend: reload camp list after leaving camp in PromptCollaboratorDeactivate
Because we are sure that there is at least one camp less.
1 parent 833f6e7 commit 40093a1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

frontend/src/components/collaborator/PromptCollaboratorDeactivate.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,13 @@ export default {
6363
.catch((e) => this.$toast.error(errorToMultiLineToast(e)))
6464
6565
// User left camp -> navigate to camp-overview
66-
promise.then(
67-
() => this.isOwnCampCollaboration && this.$router.push({ name: 'camps' })
68-
)
66+
promise.then(() => {
67+
if (!this.isOwnCampCollaboration) {
68+
return
69+
}
70+
this.api.get().camps().$reload()
71+
this.$router.push({ name: 'camps' })
72+
})
6973
7074
return promise
7175
},

0 commit comments

Comments
 (0)