fix(ui): fix initilisation logic
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / actions / SetSupervisionUrl.vue
index 2b427b18e1e644913c0f9ec5bf6b3f5020499d61..f6ecab10e1ab3fd8917ddfddac7e18d6ddcb06db 100644 (file)
@@ -5,9 +5,9 @@
   <input
     id="supervision-url"
     v-model.trim="state.supervisionUrl"
-    type="text"
+    type="url"
     name="supervision-url"
-    placeholder="supervision url"
+    placeholder="wss://"
   />
   <br />
   <Button
@@ -27,8 +27,9 @@
           })
       }
     "
-    >Set Supervision Url</Button
   >
+    Set Supervision Url
+  </Button>
   <Button @click="$router.push({ name: 'charging-stations' })">Cancel</Button>
 </template>
 
@@ -42,7 +43,7 @@ const props = defineProps<{
 }>()
 
 const state = reactive({
-  supervisionUrl: 'ws://'
+  supervisionUrl: ''
 })
 
 const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient