Tweak settings page, hide alerts

This commit is contained in:
Jon Staab
2025-03-04 10:58:14 -08:00
parent 479fed34f7
commit 901e56a625
3 changed files with 22 additions and 10 deletions
+4 -1
View File
@@ -11,7 +11,10 @@
<div class="card2 bg-alt flex flex-col gap-6 shadow-xl">
<div class="flex items-center justify-between">
<strong>Alerts</strong>
<strong class="flex items-center gap-3">
<Icon icon="inbox" />
Alerts
</strong>
<Button class="btn btn-primary btn-sm" onclick={startAlert}>
<Icon icon="add-circle" />
Add Alert
+5 -3
View File
@@ -17,7 +17,7 @@
import ModalFooter from "@lib/components/ModalFooter.svelte"
import {pushToast} from "@app/toast"
import {logout} from "@app/commands"
import {INDEXER_RELAYS, userMembership, getMembershipUrls} from "@app/state"
import {INDEXER_RELAYS, PLATFORM_NAME, userMembership, getMembershipUrls} from "@app/state"
let progress: number | undefined = $state(undefined)
let confirmText = $state("")
@@ -120,8 +120,10 @@
<progress class="progress progress-primary w-full" value={progress! * 100} max="100"></progress>
{:else}
<p>
Are you sure? To confirm, please type "{CONFIRM_TEXT}" into the text box below. This action
can't be undone.
This will delete your nostr account everywhere, not just on {PLATFORM_NAME}.
</p>
<p>
To confirm, please type "{CONFIRM_TEXT}" into the text box below. This action can't be undone.
</p>
<label class="input input-bordered flex w-full items-center gap-2">
<input bind:value={confirmText} class="grow" type="text" />