From: Jérôme Benoit Date: Fri, 1 Mar 2024 19:55:42 +0000 (+0100) Subject: refactor(ui): cleanup props usage X-Git-Tag: v1.2.38~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4b10e4f94fe91fab12f8ba298137c49fc295774c;hp=84822103592a269211a672a122d8ec0568088736;p=e-mobility-charging-stations-simulator.git refactor(ui): cleanup props usage Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/components/actions/SetSupervisionUrl.vue b/ui/web/src/components/actions/SetSupervisionUrl.vue index 7118cbc6..2b7ef4a2 100644 --- a/ui/web/src/components/actions/SetSupervisionUrl.vue +++ b/ui/web/src/components/actions/SetSupervisionUrl.vue @@ -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 }>() diff --git a/ui/web/src/components/actions/StartTransaction.vue b/ui/web/src/components/actions/StartTransaction.vue index 3c64ba7b..cdf85938 100644 --- a/ui/web/src/components/actions/StartTransaction.vue +++ b/ui/web/src/components/actions/StartTransaction.vue @@ -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 diff --git a/ui/web/src/views/ChargingStationsView.vue b/ui/web/src/views/ChargingStationsView.vue index 57ae3e20..fe361c1c 100644 --- a/ui/web/src/views/ChargingStationsView.vue +++ b/ui/web/src/views/ChargingStationsView.vue @@ -318,7 +318,7 @@ const stopSimulator = (): void => { } #reload-button:active { - background-color: seagreen; + background-color: darkblue; } #action {