Browse Source
Merge pull request #855 from doccano/fix/#840
Fix incorrect current user name, closes #840
pull/862/head
Hiroki Nakayama
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
frontend/components/organisms/layout/TheHeader.vue
-
frontend/store/auth.js
|
|
@ -77,7 +77,7 @@ |
|
|
|
</v-btn> |
|
|
|
</template> |
|
|
|
<v-list> |
|
|
|
<v-subheader>{{ getUsername }}</v-subheader> |
|
|
|
<v-subheader>{{ getUsername() }}</v-subheader> |
|
|
|
<v-list-item @click="signout"> |
|
|
|
<v-list-item-icon> |
|
|
|
<v-icon>mdi-logout</v-icon> |
|
|
|
|
|
@ -26,7 +26,7 @@ export const getters = { |
|
|
|
isAuthenticated(state) { |
|
|
|
return state.token != null |
|
|
|
}, |
|
|
|
getUsername() { |
|
|
|
getUsername: () => () => { |
|
|
|
return localStorage.getItem('username') |
|
|
|
} |
|
|
|
} |
|
|
|