From 3ba3f5efd56edad583d9e4366c9b4329ad3491db Mon Sep 17 00:00:00 2001 From: Fritz Heiden Date: Tue, 8 Apr 2025 20:54:16 +0200 Subject: [PATCH] feat: change dropdown to select in create command --- www/src/modals/create-command-modal.jsx | 76 ++++++++----------------- 1 file changed, 23 insertions(+), 53 deletions(-) diff --git a/www/src/modals/create-command-modal.jsx b/www/src/modals/create-command-modal.jsx index 548a8f0..288ee49 100644 --- a/www/src/modals/create-command-modal.jsx +++ b/www/src/modals/create-command-modal.jsx @@ -27,7 +27,9 @@ function CreateCommandModal(props) { const isTitleValid = createMemo(() => title().length >= MIN_TITLE_LENGTH); createEffect(() => { - let commandString = commandType() ? Command.CommandTypes[commandType()] : ""; + let commandString = commandType() + ? Command.CommandTypes[commandType()] + : ""; let protocolString = protocol() ? Command.Protocols[protocol()] : ""; setTitle(commandString + " " + protocolString); }); @@ -87,31 +89,15 @@ function CreateCommandModal(props) { Protocol
-
- - -
+
@@ -148,33 +134,17 @@ function CreateCommandModal(props) { Command Type
-
- - -
+