diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 526147ed42..bbd0ab5185 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -120,6 +120,7 @@ let eventConfirmationInput = false; let eventConfirmationInputPlaceholder = ''; let eventConfirmationInputValue = ''; + let eventConfirmationInputType = ''; let eventCallback = null; let chatIdUnsubscriber: Unsubscriber | undefined; @@ -524,6 +525,7 @@ eventConfirmationMessage = data.message; eventConfirmationInputPlaceholder = data.placeholder; eventConfirmationInputValue = data?.value ?? ''; + eventConfirmationInputType = data?.type ?? ''; } else { console.log('Unknown message type', data); } @@ -2537,6 +2539,7 @@ input={eventConfirmationInput} inputPlaceholder={eventConfirmationInputPlaceholder} inputValue={eventConfirmationInputValue} + inputType={eventConfirmationInputType} on:confirm={(e) => { if (e.detail) { eventCallback(e.detail); diff --git a/src/lib/components/common/ConfirmDialog.svelte b/src/lib/components/common/ConfirmDialog.svelte index bdde958ca7..c292c4f2a3 100644 --- a/src/lib/components/common/ConfirmDialog.svelte +++ b/src/lib/components/common/ConfirmDialog.svelte @@ -10,6 +10,7 @@ import { fade } from 'svelte/transition'; import { flyAndScale } from '$lib/utils/transitions'; import { marked } from 'marked'; + import SensitiveInput from './SensitiveInput.svelte'; export let title = ''; export let message = ''; @@ -22,6 +23,7 @@ export let input = false; export let inputPlaceholder = ''; export let inputValue = ''; + export let inputType = ''; export let show = false; @@ -130,13 +132,26 @@ {/if} {#if input} -