Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
<h2>Action Add Charging Stations</h2>
<p>Template:</p>
<select v-if="state.ready" v-model="state.template">
<h2>Action Add Charging Stations</h2>
<p>Template:</p>
<select v-if="state.ready" v-model="state.template">
+ <option disabled value="">Please select a template</option>
<option v-for="template in app?.appContext.config.globalProperties.$templates">
{{ template }}
</option>
<option v-for="template in app?.appContext.config.globalProperties.$templates">
{{ template }}
</option>
}>()
const state = reactive({
}>()
const state = reactive({
+ supervisionUrl: 'ws://'
})
const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient
})
const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient
<style>
#supervision-url {
<style>
#supervision-url {
+ width: 90%;
+ text-align: left;
<tbody id="connectors-table__body">
<!-- eslint-disable-next-line vue/valid-v-for -->
<CSConnector
<tbody id="connectors-table__body">
<!-- eslint-disable-next-line vue/valid-v-for -->
<CSConnector
- v-for="(connector, index) in getConnectors()"
+ v-for="(connector, index) in getConnectorStatuses()"
:hash-id="props.chargingStation.stationInfo.hashId"
:charging-station-id="props.chargingStation.stationInfo.chargingStationId"
:connector-id="index + 1"
:hash-id="props.chargingStation.stationInfo.hashId"
:charging-station-id="props.chargingStation.stationInfo.chargingStationId"
:connector-id="index + 1"
chargingStation: ChargingStationData
}>()
chargingStation: ChargingStationData
}>()
-const getConnectors = (): ConnectorStatus[] => {
+const getConnectorStatuses = (): ConnectorStatus[] => {
if (Array.isArray(props.chargingStation.evses) && props.chargingStation.evses.length > 0) {
const connectorsStatus: ConnectorStatus[] = []
for (const [evseId, evseStatus] of props.chargingStation.evses.entries()) {
if (Array.isArray(props.chargingStation.evses) && props.chargingStation.evses.length > 0) {
const connectorsStatus: ConnectorStatus[] = []
for (const [evseId, evseStatus] of props.chargingStation.evses.entries()) {