Skip to content

Commit

Permalink
UI: handle missing smart cost limit (#13857)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis authored May 11, 2024
1 parent 5750d0d commit df4b8ba
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/js/components/Loadpoint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default {
phaseRemaining: Number,
pvRemaining: Number,
pvAction: String,
smartCostLimit: Number,
smartCostLimit: { type: Number, default: 0 },
smartCostType: String,
smartCostActive: Boolean,
tariffGrid: Number,
Expand Down
2 changes: 0 additions & 2 deletions assets/js/components/Loadpoints.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ export default {
props: {
loadpoints: Array,
vehicles: Array,
smartCostLimit: Number,
smartCostType: String,
smartCostActive: Boolean,
tariffGrid: Number,
tariffCo2: Number,
currency: String,
Expand Down
3 changes: 0 additions & 3 deletions assets/js/components/Site.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
class="mt-1 mt-sm-2 flex-grow-1"
:loadpoints="loadpoints"
:vehicles="vehicleList"
:smartCostLimit="smartCostLimit"
:smartCostType="smartCostType"
:smartCostActive="smartCostActive"
:tariffGrid="tariffGrid"
:tariffCo2="tariffCo2"
:currency="currency"
Expand Down Expand Up @@ -97,7 +95,6 @@ export default {
uploadProgress: Number,
sponsor: String,
sponsorTokenExpires: Number,
smartCostLimit: Number,
smartCostType: String,
smartCostActive: Boolean,
},
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/SmartCostLimit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default {
components: { TariffChart },
mixins: [formatter],
props: {
smartCostLimit: { type: Number, default: 0 },
smartCostLimit: Number,
smartCostType: String,
tariffGrid: Number,
currency: String,
Expand Down

0 comments on commit df4b8ba

Please sign in to comment.