keanu-weblite/src/components/Home.vue

28 lines
548 B
Vue
Raw Normal View History

2021-01-11 17:42:58 +01:00
<template>
<div>
2021-02-09 12:37:56 +01:00
<RoomList />
<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>