Fixed namespaces nav sometimes using an old jwt token #26

Merged
konrad merged 1 commits from fix/namespace-load into master 2019-03-07 19:48:56 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,6 @@
},
created() {
if (this.user.authenticated) {
this.namespaceService = new NamespaceService()
this.loadNamespaces()
}
},
@ -166,6 +165,7 @@
return 'https://www.gravatar.com/avatar/' + this.user.infos.avatar + '?s=50'
},
loadNamespaces() {
this.namespaceService = new NamespaceService()
this.namespaceService.getAll()
.then(r => {
this.$set(this, 'namespaces', r)