Spaces:
Paused
Paused
viewer in saved gen
Browse files
src/lib/components/community/viewer/Viewer.svelte
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
import Reactions from '../reactions/Reactions.svelte';
|
| 10 |
import Button from '$lib/components/Button.svelte';
|
| 11 |
|
| 12 |
-
export let form: Record<string, string
|
| 13 |
let { open, gallery, previous, next } = get(galleryStore);
|
| 14 |
let loading = false;
|
| 15 |
|
|
@@ -126,26 +126,28 @@
|
|
| 126 |
</div>
|
| 127 |
</div>
|
| 128 |
</div>
|
| 129 |
-
|
| 130 |
-
<
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
|
|
|
|
|
|
| 149 |
</div>
|
| 150 |
{/if}
|
| 151 |
</div>
|
|
|
|
| 9 |
import Reactions from '../reactions/Reactions.svelte';
|
| 10 |
import Button from '$lib/components/Button.svelte';
|
| 11 |
|
| 12 |
+
export let form: Record<string, string> | undefined = undefined;
|
| 13 |
let { open, gallery, previous, next } = get(galleryStore);
|
| 14 |
let loading = false;
|
| 15 |
|
|
|
|
| 126 |
</div>
|
| 127 |
</div>
|
| 128 |
</div>
|
| 129 |
+
{#if form}
|
| 130 |
+
<footer class="border-t border-neutral-800 px-8 py-6 flex items-center justify-between">
|
| 131 |
+
<Button
|
| 132 |
+
size="lg"
|
| 133 |
+
theme="dark"
|
| 134 |
+
disabled={!previous}
|
| 135 |
+
loading={loading}
|
| 136 |
+
onClick={() => handlePagination(previous)}
|
| 137 |
+
>
|
| 138 |
+
Previous
|
| 139 |
+
</Button>
|
| 140 |
+
<Button
|
| 141 |
+
size="lg"
|
| 142 |
+
theme="light"
|
| 143 |
+
loading={loading}
|
| 144 |
+
disabled={!next}
|
| 145 |
+
onClick={() => handlePagination(next)}
|
| 146 |
+
>
|
| 147 |
+
Next
|
| 148 |
+
</Button>
|
| 149 |
+
</footer>
|
| 150 |
+
{/if}
|
| 151 |
</div>
|
| 152 |
{/if}
|
| 153 |
</div>
|
src/routes/saved-generations/+page.svelte
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<script lang="ts">
|
| 2 |
import Card from "$lib/components/community/Card.svelte";
|
| 3 |
import GoTop from "$lib/components/GoTop.svelte";
|
|
|
|
| 4 |
|
| 5 |
export let data
|
| 6 |
|
|
@@ -33,4 +34,5 @@
|
|
| 33 |
{/each}
|
| 34 |
<GoTop />
|
| 35 |
</div>
|
|
|
|
| 36 |
</main>
|
|
|
|
| 1 |
<script lang="ts">
|
| 2 |
import Card from "$lib/components/community/Card.svelte";
|
| 3 |
import GoTop from "$lib/components/GoTop.svelte";
|
| 4 |
+
import GalleryViewer from "$lib/components/community/viewer/Viewer.svelte";
|
| 5 |
|
| 6 |
export let data
|
| 7 |
|
|
|
|
| 34 |
{/each}
|
| 35 |
<GoTop />
|
| 36 |
</div>
|
| 37 |
+
<GalleryViewer />
|
| 38 |
</main>
|