Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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: '',
chargingStationId: string
}>()
-const state = ref({
+const state = ref<{ supervisionUrl: string }>({
supervisionUrl: ''
})
connectorId: string
}>()
-const state = ref({
+const state = ref<{ idTag: string }>({
idTag: ''
})
const id = props.shared === true ? `shared-toggle-button-${props.id}` : `toggle-button-${props.id}`
-const state = ref({
+const state = ref<{ status: boolean }>({
status: getFromLocalStorage<boolean>(id, props.status ?? false)
})