fix: improve consistency for user headers

This commit is contained in:
James Xylight committed 2025-08-31 10:27:32 -07:00
1 parent 602fab0f1e
commit 8300e54ca3
6 files changed
+73 -63

No files matched your search

+15 -6
View File
@@ -3,7 +3,7 @@
import Tabs from '$lib/components/ui/layout/pages/Tabs.svelte'
import { t } from '$lib/i18n/translations'
import { defaultSettings, settings } from '$lib/settings.svelte'
import { Button, toast, Modal } from 'mono-svelte'
import { Button, toast, Modal, modal, action } from 'mono-svelte'
import TextArea from 'mono-svelte/forms/TextArea.svelte'
import {
ArrowDownTray,
@@ -78,11 +78,20 @@
</Button>
<Button
onclick={() => {
toast({
content: $t('toast.resetSettings'),
action: () => {
Object.assign(settings, defaultSettings)
},
modal({
title: $t('settings.reset'),
body: $t('toast.resetSettings'),
actions: [
action({
action: () => Object.assign(settings, defaultSettings),
close: true,
type: 'danger',
content: $t('settings.reset'),
}),
action({
content: $t('common.cancel'),
}),
],
})
}}
rounding="pill"