diff --git a/client/components/app/SideRail.vue b/client/components/app/SideRail.vue index b95cc0024..c86185e10 100644 --- a/client/components/app/SideRail.vue +++ b/client/components/app/SideRail.vue @@ -63,7 +63,7 @@
- + connect_without_contact

Social

@@ -155,13 +155,6 @@ export default { isGlobalSharing() { return this.$store.getters['getServerSetting']('sharedListeningStats') }, - async socialTrue() { - let listeningStats = await this.$axios.$get(`/api/social`).catch((err) => { - console.error('Failed to load shared user listening sesions', err) - return false - }) - return listeningStats != null ? true : false - }, showingIssues() { if (!this.$route.query) return false return this.libraryBookshelfPage && this.$route.query.filter === 'issues' @@ -192,4 +185,4 @@ export default { }, mounted() {} } - \ No newline at end of file + diff --git a/client/pages/account.vue b/client/pages/account.vue index 5a52a80fa..cd9a8b490 100644 --- a/client/pages/account.vue +++ b/client/pages/account.vue @@ -16,7 +16,7 @@
- +

Share Listening Activity @@ -54,7 +54,8 @@ export default { password: null, newPassword: null, confirmPassword: null, - changingPassword: false + changingPassword: false, + isUserSharing: null } }, computed: { @@ -76,14 +77,14 @@ export default { isGuest() { return this.usertype === 'guest' }, - isSharingActivity() { - return this.$store.getters['user/getUserSetting']('shareListeningActivity') - }, isGlobalSharing() { return this.$store.getters['getServerSetting']('sharedListeningStats') } }, methods: { + init() { + this.isUserSharing = this.$store.getters['user/getUserSetting']('shareListeningActivity') + }, logout() { var rootSocket = this.$root.socket || {} const logoutPayload = { @@ -131,9 +132,11 @@ export default { }) }, changeSharingSetting() { - this.$store.dispatch('user/updateUserSettings', { shareListeningActivity: !this.isSharingActivity }) + this.$store.dispatch('user/updateUserSettings', { shareListeningActivity: this.isUserSharing}) } }, - mounted() {} + mounted() { + this.init() + } } - \ No newline at end of file + diff --git a/client/pages/social.vue b/client/pages/social.vue index d0726f3e4..4794dcf8a 100644 --- a/client/pages/social.vue +++ b/client/pages/social.vue @@ -1,6 +1,6 @@