diff --git a/web/src/lib/components/shared-components/side-bar/side-bar.svelte b/web/src/lib/components/shared-components/side-bar/side-bar.svelte index 6872e55b3d..464eba2994 100644 --- a/web/src/lib/components/shared-components/side-bar/side-bar.svelte +++ b/web/src/lib/components/shared-components/side-bar/side-bar.svelte @@ -77,23 +77,25 @@ {/if} - - - - {#await getAlbumCount()} - - {:then data} -
-

{data.shared.toLocaleString($locale)} Albums

-
- {/await} -
-
-
+ {#if $sidebarSettings.sharing} + + + + {#await getAlbumCount()} + + {:then data} +
+

{data.shared.toLocaleString($locale)} Albums

+
+ {/await} +
+
+
+ {/if}
diff --git a/web/src/lib/components/user-settings-page/sidebar-settings.svelte b/web/src/lib/components/user-settings-page/sidebar-settings.svelte index 816f519c8d..3ac2947f6b 100644 --- a/web/src/lib/components/user-settings-page/sidebar-settings.svelte +++ b/web/src/lib/components/user-settings-page/sidebar-settings.svelte @@ -10,6 +10,9 @@
+
+ +
diff --git a/web/src/lib/stores/preferences.store.ts b/web/src/lib/stores/preferences.store.ts index a0fb3d8809..db11223ede 100644 --- a/web/src/lib/stores/preferences.store.ts +++ b/web/src/lib/stores/preferences.store.ts @@ -49,10 +49,12 @@ export interface AlbumViewSettings { export interface SidebarSettings { people: boolean; + sharing: boolean; } export const sidebarSettings = persisted('sidebar-settings', { people: false, + sharing: true, }); export enum AlbumViewMode {