diff --git a/js/src/App.vue b/js/src/App.vue index cf47cef3..f08a75f4 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -11,11 +11,20 @@ @@ -77,6 +100,7 @@ export default class App extends Vue { @import "~bulma/sass/components/pagination.sass"; @import "~bulma/sass/components/dropdown.sass"; @import "~bulma/sass/components/breadcrumb.sass"; +@import "~bulma/sass/components/list.sass"; @import "~bulma/sass/elements/box.sass"; @import "~bulma/sass/elements/button.sass"; @import "~bulma/sass/elements/container.sass"; diff --git a/js/src/apollo/user.ts b/js/src/apollo/user.ts index d13baaae..be327399 100644 --- a/js/src/apollo/user.ts +++ b/js/src/apollo/user.ts @@ -12,6 +12,13 @@ export function buildCurrentUserResolver(cache: ApolloCache { + const data = { + currentActor: { + id, + preferredUsername, + avatar, + name, + __typename: 'CurrentActor', + }, + }; + cache.writeData({ data }); }, }, diff --git a/js/src/components/Account/Identities.vue b/js/src/components/Account/Identities.vue index fb0870ef..2360c510 100644 --- a/js/src/components/Account/Identities.vue +++ b/js/src/components/Account/Identities.vue @@ -55,7 +55,7 @@ + \ No newline at end of file diff --git a/js/src/components/NavBar.vue b/js/src/components/NavBar.vue index eb434847..185c359a 100644 --- a/js/src/components/NavBar.vue +++ b/js/src/components/NavBar.vue @@ -27,26 +27,42 @@ - - + + - {{ loggedPerson.preferredUsername }} + {{ currentActor.preferredUsername }} - - + + + + + + + + + + + {{ identity.displayName() }} + + + + + + + My account - + - + Create group - + - + Administration - + Log out @@ -70,9 +86,9 @@ \ No newline at end of file diff --git a/js/src/views/Account/MyAccount.vue b/js/src/views/Account/MyAccount.vue index 98802cc0..d09514e4 100644 --- a/js/src/views/Account/MyAccount.vue +++ b/js/src/views/Account/MyAccount.vue @@ -1,9 +1,9 @@ - + - - + + @@ -31,7 +31,7 @@