diff --git a/src/app.js b/src/app.js index 497bcc4e..23183ee4 100644 --- a/src/app.js +++ b/src/app.js @@ -9811,6 +9811,7 @@ console.log(`isLinux: ${LINUX}`); privacy: '', shortCode: '' }, + isRepresentedGroupLoading: false, joinCount: 0, timeSpent: 0, lastSeen: '', @@ -10074,6 +10075,7 @@ console.log(`isLinux: ${LINUX}`); shortName: '', ref: {} }; + D.isRepresentedGroupLoading = true; D.representedGroup = { bannerUrl: '', description: '', @@ -10298,6 +10300,9 @@ console.log(`isLinux: ${LINUX}`); } API.getRepresentedGroup({ userId }).then((args1) => { D.representedGroup = args1.json; + if (!args1.json || !args1.json.isRepresenting) { + D.isRepresentedGroupLoading = false; + } }); D.loading = false; }); diff --git a/src/classes/uiComponents.js b/src/classes/uiComponents.js index bcfb865e..24903cbf 100644 --- a/src/classes/uiComponents.js +++ b/src/classes/uiComponents.js @@ -566,7 +566,7 @@ export default class extends baseClass { props: { userid: String, location: String, - key: Number, + forceUpdateKey: Number, hint: { type: String, default: '' @@ -603,7 +603,7 @@ export default class extends baseClass { location() { this.parse(); }, - key() { + forceUpdateKey() { this.parse(); }, userid() { diff --git a/src/components/sidebar/GroupsSidebar.vue b/src/components/sidebar/GroupsSidebar.vue index 66cd075a..b9be39b5 100644 --- a/src/components/sidebar/GroupsSidebar.vue +++ b/src/components/sidebar/GroupsSidebar.vue @@ -3,13 +3,16 @@