aboutsummaryrefslogtreecommitdiff
path: root/ui/src/routes/list
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/routes/list')
-rw-r--r--ui/src/routes/list/+page.js2
-rw-r--r--ui/src/routes/list/+page.svelte7
2 files changed, 7 insertions, 2 deletions
diff --git a/ui/src/routes/list/+page.js b/ui/src/routes/list/+page.js
index 72e2878..1c0c1d5 100644
--- a/ui/src/routes/list/+page.js
+++ b/ui/src/routes/list/+page.js
@@ -11,4 +11,4 @@ export async function load({ params }) {
req: req,
reqJson: reqJson,
};
-} \ No newline at end of file
+}
diff --git a/ui/src/routes/list/+page.svelte b/ui/src/routes/list/+page.svelte
index c487068..3b463b5 100644
--- a/ui/src/routes/list/+page.svelte
+++ b/ui/src/routes/list/+page.svelte
@@ -7,8 +7,11 @@
.then((res) => res.json())
.then(resData => data = resData);
+
+
</script>
+<!-- TODO: Figure out how to gracefully handle 500's and such here -->
{#if data}
<ul>
{#each data as paste (paste.id)}
@@ -19,4 +22,6 @@
</li>
{/each}
</ul>
-{/if} \ No newline at end of file
+{:else}
+ Loading....
+{/if}