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
All checks were successful
the build was successful
This commit is contained in:
parent
3cf3b4571a
commit
17b3f7ac4c
|
@ -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)
|
||||
})
|
||||
|
|
2
todo.md
2
todo.md
|
@ -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
|
||||
|
|
Reference in New Issue
Block a user