refactor(ui): refine action inputs
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 18 Feb 2024 18:58:57 +0000 (19:58 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 18 Feb 2024 18:58:57 +0000 (19:58 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/components/actions/AddChargingStations.vue
ui/web/src/components/actions/SetSupervisionUrl.vue
ui/web/src/components/actions/StartTransaction.vue

index 667edb6cbfa465f923f308621004aac351d9e3fb..ebcef5ed8eca0a6d623668d772f2d00285059e34 100644 (file)
@@ -11,7 +11,8 @@
   <input
     id="number-of-stations"
     v-model="state.numberOfStations"
-    type="text"
+    type="number"
+    min="1"
     name="number-of-stations"
     placeholder="number of stations"
   />
@@ -75,6 +76,7 @@ onMounted(() => {
 
 <style>
 #number-of-stations {
+  width: 15%;
   text-align: center;
 }
 </style>
index 101ac9efc9f6a5cd76107f1cdcc6711086741371..2b427b18e1e644913c0f9ec5bf6b3f5020499d61 100644 (file)
@@ -4,7 +4,7 @@
   <p>Supervision Url:</p>
   <input
     id="supervision-url"
-    v-model="state.supervisionUrl"
+    v-model.trim="state.supervisionUrl"
     type="text"
     name="supervision-url"
     placeholder="supervision url"
index 6a96e34df4dccf80efe23ad024612d56ea957131..5d9cb8a626422911f384296d38c83f5e9c48d8c5 100644 (file)
@@ -2,7 +2,7 @@
   <h2>Action Start Transaction</h2>
   <h3>Connector {{ connectorId }} on {{ chargingStationId }}</h3>
   <p>Scan RFID tag:</p>
-  <input id="idtag" v-model="state.idTag" type="text" name="idtag" placeholder="RFID tag" />
+  <input id="idtag" v-model.trim="state.idTag" type="text" name="idtag" placeholder="RFID tag" />
   <br />
   <Button
     @click="