@click="loadChargingStations(() => $router.go(0))"
/>
</Container>
- <CSTable :charging-stations="app?.appContext.config.globalProperties.$chargingStations" />
+ <CSTable
+ v-if="
+ Array.isArray(app?.appContext.config.globalProperties.$chargingStations) &&
+ app?.appContext.config.globalProperties.$chargingStations.length > 0
+ "
+ :charging-stations="app?.appContext.config.globalProperties.$chargingStations"
+ />
</Container>
</template>
uiClient
.stopSimulator()
.then(() => {
+ if (app != null) {
+ app.appContext.config.globalProperties.$chargingStations = []
+ }
$toast.success('Simulator successfully stopped')
})
.catch((error: Error) => {
#charging-stations-container {
height: fit-content;
width: 100%;
+ position: absolute;
display: flex;
flex-direction: column;
}