X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomponents%2Factions%2FAddChargingStations.vue;h=f3450e1b0d307cfe1f6ad7c0d82e91644e32bace;hb=c63085548339556d66ced562e9649a84d0544ff4;hp=a0661a08d083060058d8546bdebcec9e77a860f7;hpb=2610da71b813ad94e1a2a48755d5689da53b41fa;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/components/actions/AddChargingStations.vue b/ui/web/src/components/actions/AddChargingStations.vue index a0661a08..f3450e1b 100644 --- a/ui/web/src/components/actions/AddChargingStations.vue +++ b/ui/web/src/components/actions/AddChargingStations.vue @@ -8,7 +8,7 @@ v-for="template in app?.appContext.config.globalProperties.$templates" v-show=" Array.isArray(app?.appContext.config.globalProperties.$templates) && - app?.appContext.config.globalProperties.$templates.length > 0 + app.appContext.config.globalProperties.$templates.length > 0 " > {{ template }} @@ -103,7 +103,15 @@ import { useToast } from 'vue-toast-notification' import Button from '@/components/buttons/Button.vue' import { convertToBoolean } from '@/composables' -const state = ref({ +const state = ref<{ + template: string + numberOfStations: number + supervisionUrl: string + autoStart: boolean + persistentConfiguration: boolean + ocppStrictCompliance: boolean + enableStatistics: boolean +}>({ template: '', numberOfStations: 1, supervisionUrl: '',