refactor(ui): cleanup props usage
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / actions / SetSupervisionUrl.vue
index 7118cbc68a17544224192db189f0026ba29379d4..2b7ef4a251a5b6c846a696da34038362f7e95147 100644 (file)
@@ -16,7 +16,7 @@
     @click="
       () => {
         uiClient
-          .setSupervisionUrl(props.hashId, state.supervisionUrl)
+          .setSupervisionUrl(hashId, state.supervisionUrl)
           .then(() => {
             $toast.success('Supervision url successfully set')
           })
@@ -38,7 +38,7 @@
 import { getCurrentInstance, ref } from 'vue'
 import Button from '@/components/buttons/Button.vue'
 
-const props = defineProps<{
+defineProps<{
   hashId: string
   chargingStationId: string
 }>()