Fixed namespaces nav sometimes using an old jwt token (#26)
This commit is contained in:
parent
f7a17e45bc
commit
316148531c
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,6 @@
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.user.authenticated) {
|
if (this.user.authenticated) {
|
||||||
this.namespaceService = new NamespaceService()
|
|
||||||
this.loadNamespaces()
|
this.loadNamespaces()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -174,6 +173,7 @@
|
||||||
return 'https://www.gravatar.com/avatar/' + this.user.infos.avatar + '?s=50'
|
return 'https://www.gravatar.com/avatar/' + this.user.infos.avatar + '?s=50'
|
||||||
},
|
},
|
||||||
loadNamespaces() {
|
loadNamespaces() {
|
||||||
|
this.namespaceService = new NamespaceService()
|
||||||
this.namespaceService.getAll()
|
this.namespaceService.getAll()
|
||||||
.then(r => {
|
.then(r => {
|
||||||
this.$set(this, 'namespaces', r)
|
this.$set(this, 'namespaces', r)
|
||||||
|
|
Loading…
Reference in a new issue