From ec1c3a86f53574f615fd8cf68e32c86f168a4a62 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Sun, 24 Jul 2022 23:30:30 -0500 Subject: [PATCH] Added messages when there is no album or shared album --- web/src/routes/albums/index.svelte | 13 +++++++++++++ web/src/routes/sharing/index.svelte | 12 ++++++++++++ web/static/empty-1.svg | 1 + web/static/empty-2.svg | 1 + 4 files changed, 27 insertions(+) create mode 100644 web/static/empty-1.svg create mode 100644 web/static/empty-2.svg diff --git a/web/src/routes/albums/index.svelte b/web/src/routes/albums/index.svelte index cabfdd7212..336b43a7b3 100644 --- a/web/src/routes/albums/index.svelte +++ b/web/src/routes/albums/index.svelte @@ -161,6 +161,19 @@ {/key} {/each} + + + {#if albums.length === 0} +
+ Empty shared album + +

+ Create an album to organize your photos and videos +

+
+ {/if} diff --git a/web/src/routes/sharing/index.svelte b/web/src/routes/sharing/index.svelte index 4cfbf55fb3..5bd8a9e47a 100644 --- a/web/src/routes/sharing/index.svelte +++ b/web/src/routes/sharing/index.svelte @@ -108,6 +108,18 @@ > {/each} + + + {#if sharedAlbums.length === 0} +
+ Empty shared album +

+ Create a shared album to share photos and videos with people in your network +

+
+ {/if} diff --git a/web/static/empty-1.svg b/web/static/empty-1.svg new file mode 100644 index 0000000000..f5769f4c5f --- /dev/null +++ b/web/static/empty-1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/static/empty-2.svg b/web/static/empty-2.svg new file mode 100644 index 0000000000..627441a80b --- /dev/null +++ b/web/static/empty-2.svg @@ -0,0 +1 @@ + \ No newline at end of file