Fixed a bug where the first request after login was made with the token of the lastly logged in user
All checks were successful
the build was successful

This commit is contained in:
kolaente 2019-02-28 08:01:41 +01:00
parent 3cf3b4571a
commit 17b3f7ac4c
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 4 deletions

View File

@ -132,7 +132,6 @@
mobileMenuActive: false,
fullpage: false,
currentDate: new Date(),
namespaceService: NamespaceService,
}
},
beforeMount() {
@ -150,7 +149,6 @@
}
},
created() {
this.namespaceService = new NamespaceService()
if (this.user.authenticated) {
this.loadNamespaces()
}
@ -167,7 +165,8 @@
return 'https://www.gravatar.com/avatar/' + this.user.infos.avatar + '?s=50'
},
loadNamespaces() {
this.namespaceService.getAll()
let namespaceService = new NamespaceService()
namespaceService.getAll()
.then(r => {
this.$set(this, 'namespaces', r)
})

View File

@ -103,7 +103,7 @@
* [ ] Refactor team sharing to not make a new request every time something was changed
* [ ] Team sharing should be able to search for a team instead of its ID, like it's the case with users
* [ ] Dropdown for rights
* [ ] Fix the first request afer login being made with an old token. Possible workaround may be to just make a
* [x] Fix the first request afer login being made with an old token. Possible workaround may be to just make a
request into the void, before doing anything else, and repeating that until it succeeds.
## Waiting for backend