Add basic "home" screen with room list
This commit is contained in:
parent
c489d58a69
commit
9c9619fe1c
5 changed files with 24 additions and 9 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue