summaryrefslogtreecommitdiffstats
path: root/src/components/AppContent
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-04 12:19:55 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-04 12:19:55 +0200
commit3522ff1e3e8584bbae52b95d1361d923a3f655e1 (patch)
tree0040c29f99a995707a6c757894b609e690f6f613 /src/components/AppContent
parenta8ed74fe9572c89ee2dcb598f29e2d2e58ee2198 (diff)
Fix init circle loading and logger debug
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/components/AppContent')
-rw-r--r--src/components/AppContent/CircleContent.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/AppContent/CircleContent.vue b/src/components/AppContent/CircleContent.vue
index d5e22f15..5a6c72f1 100644
--- a/src/components/AppContent/CircleContent.vue
+++ b/src/components/AppContent/CircleContent.vue
@@ -139,15 +139,21 @@ export default {
watch: {
circle(newCircle) {
if (newCircle?.id) {
- console.debug('Circles list is done loading, fetching members for', newCircle.id)
this.fetchCircleMembers(newCircle.id)
}
},
},
+ beforeMount() {
+ if (this.circle?.id) {
+ this.fetchCircleMembers(this.circle.id)
+ }
+ },
+
methods: {
async fetchCircleMembers(circleId) {
this.loadingList = true
+ this.logger.debug('Fetching members for', { circleId })
try {
await this.$store.dispatch('getCircleMembers', circleId)