Optionally show invites in room list
Work on issue #109. Also, add a loading indicator for issue #43.
This commit is contained in:
parent
3d8496b956
commit
0aa33c5300
4 changed files with 113 additions and 4 deletions
|
|
@ -1,7 +1,24 @@
|
|||
<template>
|
||||
<div>
|
||||
<RoomList />
|
||||
<div class="pa-4">
|
||||
<RoomList showInvites />
|
||||
<v-btn block depressed class="outlined-button" @click.stop="logout">Logout</v-btn>
|
||||
|
||||
<!-- 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>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -12,6 +29,11 @@ export default {
|
|||
components: {
|
||||
RoomList
|
||||
},
|
||||
computed: {
|
||||
loading() {
|
||||
return !this.$matrix.ready;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
logout() {
|
||||
//TODO - For guest accounts, show warning about not being able to rejoin.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue