From 9efb763cd698854a7e47847ac79eaff9ebee954a Mon Sep 17 00:00:00 2001
From: Mel <einebeere@gmail.com>
Date: Sun, 20 Feb 2022 23:55:18 +0100
Subject: Empty requests placeholder

---
 assets/src/components/share/RequestList.svelte | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'assets/src/components/share/RequestList.svelte')

diff --git a/assets/src/components/share/RequestList.svelte b/assets/src/components/share/RequestList.svelte
index 1a3b715..c092b7f 100644
--- a/assets/src/components/share/RequestList.svelte
+++ b/assets/src/components/share/RequestList.svelte
@@ -4,6 +4,7 @@
     import type { IncomingRequest } from "../../models/incoming_request";
     import { getShareState, Sharing } from "../../state/share";
     import Request from "./Request.svelte";
+    import EmptyRequests from "./EmptyRequests.svelte";
 
     const sharing = getShareState().state as Sharing;
     const requestMap = sharing.getRequests();
@@ -19,4 +20,6 @@
 
 {#each $requests as request (request.info.token)}
     <Request {request} />
+{:else}
+    <EmptyRequests />
 {/each}
-- 
cgit 1.4.1

