From: Jérôme Benoit Date: Fri, 1 Mar 2024 14:33:22 +0000 (+0100) Subject: feat(ui): introduce toggle button and use it for actions X-Git-Tag: v1.2.38~20 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2610da71b813ad94e1a2a48755d5689da53b41fa;p=e-mobility-charging-stations-simulator.git feat(ui): introduce toggle button and use it for actions Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/components/actions/AddChargingStations.vue b/ui/web/src/components/actions/AddChargingStations.vue index ff9f5f61..a0661a08 100644 --- a/ui/web/src/components/actions/AddChargingStations.vue +++ b/ui/web/src/components/actions/AddChargingStations.vue @@ -2,15 +2,15 @@

Action

Add Charging Stations

Template:

- - @@ -95,7 +95,6 @@ > Add Charging Stations - + + diff --git a/ui/web/src/components/charging-stations/CSConnector.vue b/ui/web/src/components/charging-stations/CSConnector.vue index 7c31ae98..d3e37d63 100644 --- a/ui/web/src/components/charging-stations/CSConnector.vue +++ b/ui/web/src/components/charging-stations/CSConnector.vue @@ -9,16 +9,25 @@ {{ atgStatus?.start === true ? 'Yes' : 'No' }} - + @@ -31,6 +40,7 @@ import { getCurrentInstance } from 'vue' import { useToast } from 'vue-toast-notification' import Button from '@/components/buttons/Button.vue' import type { ConnectorStatus, Status } from '@/types' +import ToggleButton from '@/components/buttons/ToggleButton.vue' const props = defineProps<{ hashId: string diff --git a/ui/web/src/components/charging-stations/CSData.vue b/ui/web/src/components/charging-stations/CSData.vue index 2462e6d6..375fb3bc 100644 --- a/ui/web/src/components/charging-stations/CSData.vue +++ b/ui/web/src/components/charging-stations/CSData.vue @@ -1,40 +1,49 @@