Skip to content

Commit

Permalink
fix(ui): ensure action bar is displayed
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
Jérôme Benoit committed Feb 20, 2024
1 parent 5c0e935 commit 7378b34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/web/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<router-view />
<Container id="action-container">
<Container v-show="$route.path !== '/'" id="action-container">
<router-view name="action" />
</Container>
</template>
Expand Down
2 changes: 1 addition & 1 deletion ui/web/src/components/actions/AddChargingStations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1 id="action">Action</h1>
<h2>Add Charging Stations</h2>
<p>Template:</p>
<select v-if="state.ready" v-model="state.template">
<select v-show="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 }}
Expand Down
3 changes: 1 addition & 2 deletions ui/web/src/views/ChargingStationsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/>
</Container>
<CSTable
v-if="
v-show="
Array.isArray(app?.appContext.config.globalProperties.$chargingStations) &&
app?.appContext.config.globalProperties.$chargingStations.length > 0
"
Expand Down Expand Up @@ -94,7 +94,6 @@ const stopSimulator = (): void => {
#charging-stations-container {
height: fit-content;
width: 100%;
position: absolute;
display: flex;
flex-direction: column;
}
Expand Down

0 comments on commit 7378b34

Please sign in to comment.