feat(ui): reusable app-styled confirm dialog, replacing window.confirm

Add a promise-based ConfirmProvider + useConfirm() hook (built on the Modal shell,
liquid-glass styling, danger variant, Esc/backdrop = cancel, Enter = confirm) so
confirmations match the app instead of the native browser dialog. Wire it in at the
app root and replace both window.confirm call sites (playlist delete, channel
unsubscribe). Trilingual common.confirm/confirmTitle strings.
This commit is contained in:
npeter83 2026-06-15 15:06:47 +02:00
parent 49cf2246b8
commit 8a82d56950
7 changed files with 103 additions and 9 deletions

View file

@ -3,6 +3,8 @@
"termsOfService": "Nutzungsbedingungen",
"close": "Schließen",
"cancel": "Abbrechen",
"confirm": "Bestätigen",
"confirmTitle": "Bist du sicher?",
"save": "Speichern",
"loading": "Wird geladen…",
"language": "Sprache",