From c074ca9159fe50bcb0a3414ba7da7e01b7e4cb5c Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 25 May 2021 19:18:25 +0200 Subject: [PATCH] Fix TextInputModal preset value --- ts/deckoptions/ConfigSelector.svelte | 25 ++++++++++++++++++++----- ts/deckoptions/SaveButton.svelte | 25 +++++++------------------ ts/deckoptions/TextInputModal.svelte | 1 + 3 files changed, 28 insertions(+), 23 deletions(-) diff --git a/ts/deckoptions/ConfigSelector.svelte b/ts/deckoptions/ConfigSelector.svelte index d75918f05..fdd7681a0 100644 --- a/ts/deckoptions/ConfigSelector.svelte +++ b/ts/deckoptions/ConfigSelector.svelte @@ -4,7 +4,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> @@ -77,7 +92,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - + diff --git a/ts/deckoptions/SaveButton.svelte b/ts/deckoptions/SaveButton.svelte index 28a79dc5a..5a5002f38 100644 --- a/ts/deckoptions/SaveButton.svelte +++ b/ts/deckoptions/SaveButton.svelte @@ -4,10 +4,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> @@ -69,8 +56,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - Add Config - Rename Config + dispatch('add')}>Add Config + dispatch('rename')}> + Rename Config + Remove Config save(true)}> diff --git a/ts/deckoptions/TextInputModal.svelte b/ts/deckoptions/TextInputModal.svelte index e694f8736..8d132941b 100644 --- a/ts/deckoptions/TextInputModal.svelte +++ b/ts/deckoptions/TextInputModal.svelte @@ -27,6 +27,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html function onOkClicked(): void { onOk(inputRef.value); modal.hide(); + value = ""; } function onShown(): void {