From 4b10e4f94fe91fab12f8ba298137c49fc295774c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 1 Mar 2024 20:55:42 +0100 Subject: [PATCH] refactor(ui): cleanup props usage MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/src/components/actions/SetSupervisionUrl.vue | 4 ++-- ui/web/src/components/actions/StartTransaction.vue | 4 ++-- ui/web/src/views/ChargingStationsView.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 { -- 2.34.1