feat: Add option to revert vote colors

This commit is contained in:
Xyphyn committed 2023-07-17 13:27:06 -07:00
1 parent adc3df0d8f
commit 75671f3fad
7 files changed
+50 -10

No files matched your search

+17
View File
@@ -124,3 +124,20 @@
</li>
{/each}
</ul>
<div class="mt-2 w-full">
<Button
on:click={() => {
$page.url.searchParams.set(
'page',
((Number($page.url.searchParams.get('page')) || 1) + 1).toString()
)
goto($page.url.toString(), {
invalidateAll: true,
})
}}
>
Next
</Button>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@ import type { ListingType } from 'lemmy-js-client'
import { get } from 'svelte/store'
export function load({ url }) {
const type = url.searchParams.get('listingType') as ListingType
const type = url.searchParams.get('type') as ListingType
const page = Number(url.searchParams.get('page')) || 1
const query = url.searchParams.get('q')