From bc6907ef8d480049cd9c2df3c0ed66b985eb1a40 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sat, 29 May 2021 12:29:22 +0200 Subject: [PATCH] Implement SpinBoxRow --- ts/deckoptions/DailyLimits.svelte | 55 ++++++++++-------------------- ts/deckoptions/LapseOptions.svelte | 4 +-- ts/deckoptions/NewOptions.svelte | 6 ++-- ts/deckoptions/SpinBoxRow.svelte | 26 ++++++++++++++ ts/deckoptions/Warning.svelte | 18 ++++++++++ ts/deckoptions/Warnings.svelte | 20 ----------- 6 files changed, 67 insertions(+), 62 deletions(-) create mode 100644 ts/deckoptions/SpinBoxRow.svelte create mode 100644 ts/deckoptions/Warning.svelte delete mode 100644 ts/deckoptions/Warnings.svelte diff --git a/ts/deckoptions/DailyLimits.svelte b/ts/deckoptions/DailyLimits.svelte index d45324f81..4f1eeaa6c 100644 --- a/ts/deckoptions/DailyLimits.svelte +++ b/ts/deckoptions/DailyLimits.svelte @@ -3,15 +3,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> - - - {tr.schedulingNewCardsday()} - - - - - - + + {tr.schedulingNewCardsday()} + - + - - - {tr.schedulingMaximumReviewsday()} - - - - - - + + {tr.schedulingMaximumReviewsday()} + - + diff --git a/ts/deckoptions/LapseOptions.svelte b/ts/deckoptions/LapseOptions.svelte index c6d529440..37bf3aed4 100644 --- a/ts/deckoptions/LapseOptions.svelte +++ b/ts/deckoptions/LapseOptions.svelte @@ -8,7 +8,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import TitledContainer from "./TitledContainer.svelte"; import Row from "./Row.svelte"; import Col from "./Col.svelte"; - import Warnings from "./Warnings.svelte"; + import Warning from "./Warning.svelte"; import HelpPopup from "./HelpPopup.svelte"; import SpinBox from "./SpinBox.svelte"; import EnumSelector from "./EnumSelector.svelte"; @@ -65,7 +65,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - + diff --git a/ts/deckoptions/NewOptions.svelte b/ts/deckoptions/NewOptions.svelte index 736762d40..4ff65a254 100644 --- a/ts/deckoptions/NewOptions.svelte +++ b/ts/deckoptions/NewOptions.svelte @@ -8,7 +8,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import TitledContainer from "./TitledContainer.svelte"; import Row from "./Row.svelte"; import Col from "./Col.svelte"; - import Warnings from "./Warnings.svelte"; + import Warning from "./Warning.svelte"; import HelpPopup from "./HelpPopup.svelte"; import SpinBox from "./SpinBox.svelte"; import StepsInput from "./StepsInput.svelte"; @@ -73,7 +73,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - + @@ -90,7 +90,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - + diff --git a/ts/deckoptions/SpinBoxRow.svelte b/ts/deckoptions/SpinBoxRow.svelte new file mode 100644 index 000000000..b55032386 --- /dev/null +++ b/ts/deckoptions/SpinBoxRow.svelte @@ -0,0 +1,26 @@ + + + + + + + + + + + + diff --git a/ts/deckoptions/Warning.svelte b/ts/deckoptions/Warning.svelte new file mode 100644 index 000000000..e80fdb09c --- /dev/null +++ b/ts/deckoptions/Warning.svelte @@ -0,0 +1,18 @@ + + + +{#if warning} + +
+ {warning} +
+
+{/if} diff --git a/ts/deckoptions/Warnings.svelte b/ts/deckoptions/Warnings.svelte deleted file mode 100644 index 10fe77b01..000000000 --- a/ts/deckoptions/Warnings.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - -{#each warnings as warning} - {#if warning} - -
- {warning} -
-
- {/if} -{/each}