Add basic "home" screen with room list

This commit is contained in:
N-Pex 2021-02-09 12:37:56 +01:00
parent c489d58a69
commit 9c9619fe1c
5 changed files with 24 additions and 9 deletions

View file

@ -1,11 +1,26 @@
<template>
<div>
HOME
<RoomList />
<v-btn block class="outlined-button" @click.stop="logout">Logout</v-btn>
</div>
</template>
<script>
import RoomList from '../components/RoomList';
export default {
components: {
RoomList
},
methods: {
logout() {
//TODO - For guest accounts, show warning about not being able to rejoin.
this.$store.dispatch("auth/logout");
this.$nextTick(() => {
this.$navigation.push({path: "/login"}, -1);
})
},
}
};
</script>