Skip to content

Commit

Permalink
Mobile view: FIx chargers beeing clickable when disconnected. fix #93
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreddow committed Sep 23, 2024
1 parent ae4adf9 commit 60bc6b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/charger_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ export class ChargerListComponent extends Component<{}, ChargerListComponentStat
return <>
<Card className="mb-2">
<Card.Header onClick={async () => {
if (!this.connection_possible(charger)) {
return;
}
await this.connect_to_charger(charger);
}} className="d-flex justify-content-between align-items-center p-2d5">
<h5 class="text-break" style="margin-bottom: 0;">{charger.name}</h5>
Expand Down

0 comments on commit 60bc6b3

Please sign in to comment.