mirror of
https://github.com/unraid/api.git
synced 2026-01-01 14:10:10 -06:00
feat(web): add link to settings in notification sidebar
This commit is contained in:
@@ -20,8 +20,13 @@ const importance = ref<Importance | undefined>(undefined);
|
|||||||
<!-- We remove the horizontal padding from the container to keep the NotificationList's scrollbar in the right place -->
|
<!-- We remove the horizontal padding from the container to keep the NotificationList's scrollbar in the right place -->
|
||||||
<SheetContent :to="teleportTarget" class="w-full sm:max-w-[540px] h-screen px-0">
|
<SheetContent :to="teleportTarget" class="w-full sm:max-w-[540px] h-screen px-0">
|
||||||
<div class="flex flex-col h-full gap-3">
|
<div class="flex flex-col h-full gap-3">
|
||||||
<SheetHeader class="ml-1 px-6">
|
<SheetHeader class="ml-1 px-6 flex items-baseline gap-0">
|
||||||
<SheetTitle>Notifications</SheetTitle>
|
<SheetTitle class="text-2xl">Notifications</SheetTitle>
|
||||||
|
<a href="/Settings/Notifications">
|
||||||
|
<Button variant="link" size="sm" class="text-muted-foreground text-base p-0">
|
||||||
|
Edit Settings
|
||||||
|
</Button>
|
||||||
|
</a>
|
||||||
</SheetHeader>
|
</SheetHeader>
|
||||||
|
|
||||||
<!-- min-h-0 prevents the flex container from expanding beyond its containing bounds. -->
|
<!-- min-h-0 prevents the flex container from expanding beyond its containing bounds. -->
|
||||||
@@ -33,16 +38,26 @@ const importance = ref<Importance | undefined>(undefined);
|
|||||||
<TabsTrigger value="unread"> Unread </TabsTrigger>
|
<TabsTrigger value="unread"> Unread </TabsTrigger>
|
||||||
<TabsTrigger value="archived"> Archived </TabsTrigger>
|
<TabsTrigger value="archived"> Archived </TabsTrigger>
|
||||||
</TabsList>
|
</TabsList>
|
||||||
|
<TabsContent value="unread">
|
||||||
<Button
|
<Button
|
||||||
:disabled="loadingArchiveAll"
|
:disabled="loadingArchiveAll"
|
||||||
variant="link"
|
variant="link"
|
||||||
size="sm"
|
size="sm"
|
||||||
class="text-muted-foreground text-base p-0"
|
class="text-muted-foreground text-base p-0"
|
||||||
@click="archiveAll"
|
@click="archiveAll"
|
||||||
>
|
>
|
||||||
Archive All
|
Archive All
|
||||||
</Button>
|
</Button>
|
||||||
|
</TabsContent>
|
||||||
|
<TabsContent value="archived">
|
||||||
|
<Button
|
||||||
|
variant="link"
|
||||||
|
size="sm"
|
||||||
|
class="text-muted-foreground text-base p-0"
|
||||||
|
>
|
||||||
|
Delete All
|
||||||
|
</Button>
|
||||||
|
</TabsContent>
|
||||||
|
|
||||||
<Select
|
<Select
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
|
|||||||
Reference in New Issue
Block a user