UI: handle missing smart cost limit (#13857)

This commit is contained in:
Michael Geers 2024-05-11 15:10:14 +02:00 • committed by GitHub
parent 5750d0d1e9
commit df4b8baf5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 7 deletions

View file

@ -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,

View file

@ -63,9 +63,7 @@ export default {
props: {
loadpoints: Array,
vehicles: Array,
smartCostLimit: Number,
smartCostType: String,
smartCostActive: Boolean,
tariffGrid: Number,
tariffCo2: Number,
currency: String,

View file

@ -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"
@ -97,7 +95,6 @@ export default {
uploadProgress: Number,
sponsor: String,
sponsorTokenExpires: Number,
smartCostLimit: Number,
smartCostType: String,
smartCostActive: Boolean,
},

View file

@ -85,7 +85,7 @@ export default {
components: { TariffChart },
mixins: [formatter],
props: {
smartCostLimit: { type: Number, default: 0 },
smartCostLimit: Number,
smartCostType: String,
tariffGrid: Number,
currency: String,