2021-01-11 17:42:58 +01:00
|
|
|
<template>
|
2021-04-14 12:37:42 +02:00
|
|
|
<div class="pa-4">
|
2021-05-27 13:39:38 +02:00
|
|
|
<RoomList showInvites showCreate :title="$t('room.room_list_rooms')" :invitesTitle="$t('room.room_list_invites')" v-on:newroom="createRoom" />
|
2021-05-20 12:33:59 +02:00
|
|
|
<v-btn block depressed class="outlined-button" @click.stop="logout">{{$t('menu.logout')}}</v-btn>
|
2021-04-14 12:37:42 +02:00
|
|
|
|
|
|
|
|
<!-- Loading indicator -->
|
|
|
|
|
<v-container
|
|
|
|
|
fluid
|
|
|
|
|
fill-height
|
|
|
|
|
style="position: absolute;background-color:rgba(0,0,0,0.2)"
|
|
|
|
|
v-if="loading"
|
|
|
|
|
>
|
|
|
|
|
<v-row align="center" justify="center">
|
|
|
|
|
<v-col class="text-center">
|
|
|
|
|
<v-progress-circular
|
|
|
|
|
indeterminate
|
|
|
|
|
color="primary"
|
|
|
|
|
></v-progress-circular>
|
|
|
|
|
</v-col>
|
|
|
|
|
</v-row>
|
|
|
|
|
</v-container>
|
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
|
|
|
|
|
},
|
2021-04-14 12:37:42 +02:00
|
|
|
computed: {
|
|
|
|
|
loading() {
|
|
|
|
|
return !this.$matrix.ready;
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-02-09 12:37:56 +01:00
|
|
|
methods: {
|
|
|
|
|
logout() {
|
|
|
|
|
//TODO - For guest accounts, show warning about not being able to rejoin.
|
2021-05-10 11:13:22 +02:00
|
|
|
this.$store.dispatch("logout");
|
2021-02-09 12:37:56 +01:00
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$navigation.push({path: "/login"}, -1);
|
|
|
|
|
})
|
|
|
|
|
},
|
2021-05-27 13:39:38 +02:00
|
|
|
|
|
|
|
|
createRoom() {
|
|
|
|
|
this.$navigation.push({ name: "CreateRoom" });
|
|
|
|
|
}
|
2021-02-09 12:37:56 +01:00
|
|
|
}
|
2021-01-11 17:42:58 +01:00
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
</style>
|