From 0aa33c53007cc99f001d552366bfa0ac4716bee6 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Wed, 14 Apr 2021 12:37:42 +0200 Subject: [PATCH] Optionally show invites in room list Work on issue #109. Also, add a loading indicator for issue #43. --- src/components/Home.vue | 26 +++++++++++- src/components/Profile.vue | 1 + src/components/RoomList.vue | 73 +++++++++++++++++++++++++++++++++- src/services/matrix.service.js | 17 ++++++++ 4 files changed, 113 insertions(+), 4 deletions(-) diff --git a/src/components/Home.vue b/src/components/Home.vue index f4bfde1..6b19b8c 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -1,7 +1,24 @@ @@ -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. diff --git a/src/components/Profile.vue b/src/components/Profile.vue index a906467..a8f6471 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -28,6 +28,7 @@
{{ displayName }}
+
{{ $matrix.currentUser.user_id }}
This identity is temporary. Set a password to use it again.
diff --git a/src/components/RoomList.vue b/src/components/RoomList.vue index c219ca5..25a1413 100644 --- a/src/components/RoomList.vue +++ b/src/components/RoomList.vue @@ -1,8 +1,26 @@