Skip to content

Commit

Permalink
Fix priority charge icon displayed when car not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Oct 24, 2020
1 parent 65c3cc4 commit 4a7046e
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 51 deletions.
4 changes: 3 additions & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ Vue.component("loadpoint-details", {
mixins: [formatter],
computed: {
minSoCActive: function () {
return this.state.minSoC > 0 && this.state.socCharge < this.state.minSoC;
return this.state.connected && (
this.state.minSoC > 0 && this.state.socCharge < this.state.minSoC
)
}
}
});
Expand Down
100 changes: 50 additions & 50 deletions server/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a7046e

Please sign in to comment.