Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
feat: use real name, remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ocjojo committed Mar 22, 2020
1 parent 1a445ef commit b219f16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions frontend/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ const getters = {
},
async rooms() {
if (store.rooms) {
console.log(store.rooms);
return store.rooms;
} else {
return api.rooms().then(rooms => {
console.log(rooms);
if (!rooms.error) {
Vue.set(store, "rooms", rooms);
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
<img v-else src="@/assets/defaultAvatar.svg" alt="avatar" />
<div class="context-menu">
<div class="context-menu-item">Username: Paul</div>
<div class="context-menu-item">Username: {{ user.Fullname }}</div>
<div class="context-menu-item">Bild ändern</div>
<div class="context-menu-item" @click="logOut()">Ausloggen</div>
</div>
Expand Down

0 comments on commit b219f16

Please sign in to comment.