2021-01-11 17:42:58 +01:00
|
|
|
<template>
|
|
|
|
|
<div>
|
2021-02-09 12:37:56 +01:00
|
|
|
<RoomList />
|
2021-03-29 21:55:43 +02:00
|
|
|
<v-btn block depressed class="outlined-button" @click.stop="logout">Logout</v-btn>
|
2021-01-11 17:42:58 +01:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2021-02-09 12:37:56 +01:00
|
|
|
import RoomList from '../components/RoomList';
|
|
|
|
|
|
2021-01-11 17:42:58 +01:00
|
|
|
export default {
|
2021-02-09 12:37:56 +01:00
|
|
|
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);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
2021-01-11 17:42:58 +01:00
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
</style>
|