misc: add refresh button to inbox page, close #313
This commit is contained in:
1 parent
fbbecb9522
commit
fa520267c2
1 file changed
+11
-2
@@ -2,6 +2,7 @@
|
|||||||
import InboxItem from './InboxItem.svelte'
|
import InboxItem from './InboxItem.svelte'
|
||||||
import {
|
import {
|
||||||
AdjustmentsHorizontal,
|
AdjustmentsHorizontal,
|
||||||
|
ArrowPath,
|
||||||
Bars3BottomRight,
|
Bars3BottomRight,
|
||||||
Check,
|
Check,
|
||||||
Funnel,
|
Funnel,
|
||||||
@@ -49,13 +50,21 @@
|
|||||||
<title>Inbox</title>
|
<title>Inbox</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="flex flex-row justify-between">
|
<div class="flex flex-row gap-2">
|
||||||
<h1 class="font-bold text-3xl">Inbox</h1>
|
<h1 class="font-bold text-3xl mr-auto">Inbox</h1>
|
||||||
|
<Button
|
||||||
|
on:click={() => goto($page.url, { invalidateAll: true })}
|
||||||
|
size="square-md"
|
||||||
|
title="Refresh"
|
||||||
|
>
|
||||||
|
<Icon src={ArrowPath} size="16" mini slot="prefix" />
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
on:click={markAllAsRead}
|
on:click={markAllAsRead}
|
||||||
loading={markingAsRead}
|
loading={markingAsRead}
|
||||||
disabled={markingAsRead}
|
disabled={markingAsRead}
|
||||||
size="md"
|
size="md"
|
||||||
|
class="!h-8"
|
||||||
>
|
>
|
||||||
<Icon src={Check} width={16} mini slot="prefix" />
|
<Icon src={Check} width={16} mini slot="prefix" />
|
||||||
Mark All Read
|
Mark All Read
|
||||||
|
|||||||
Reference in new issue
Block a user