refactor(ui): cleanup props usage
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 1 Mar 2024 19:55:42 +0000 (20:55 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 1 Mar 2024 19:55:42 +0000 (20:55 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/components/actions/SetSupervisionUrl.vue
ui/web/src/components/actions/StartTransaction.vue
ui/web/src/views/ChargingStationsView.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
 }>()
index 3c64ba7b78bd3608753a17fba240ca93f235a280..cdf85938155a2bc5f381a86785d963dcd9926a4c 100644 (file)
@@ -10,7 +10,7 @@
     @click="
       () => {
         uiClient
-          .startTransaction(props.hashId, convertToInt(props.connectorId), state.idTag)
+          .startTransaction(hashId, convertToInt(connectorId), state.idTag)
           .then(() => {
             $toast.success('Transaction successfully started')
           })
@@ -33,7 +33,7 @@ import { getCurrentInstance, ref } from 'vue'
 import Button from '@/components/buttons/Button.vue'
 import { convertToInt } from '@/composables'
 
-const props = defineProps<{
+defineProps<{
   hashId: string
   chargingStationId: string
   connectorId: string
index 57ae3e20d7f0ba65d57a1933b1b483887f739189..fe361c1c1766dfe11753890146dfb5c5ed4f36f6 100644 (file)
@@ -318,7 +318,7 @@ const stopSimulator = (): void => {
 }
 
 #reload-button:active {
-  background-color: seagreen;
+  background-color: darkblue;
 }
 
 #action {