diff --git a/assets/js/components/Tariff/SmartCostLimit.vue b/assets/js/components/Tariff/SmartCostLimit.vue index 89383a28b..f492c5e63 100644 --- a/assets/js/components/Tariff/SmartCostLimit.vue +++ b/assets/js/components/Tariff/SmartCostLimit.vue @@ -60,7 +60,7 @@ export default defineComponent({ description: lp ? t("loadpointDescription") : t("batteryDescription"), limitLabel: co2 ? t("co2Limit") : t("priceLimit"), currentPriceLabel: co2 ? t("co2Label") : t("priceLabel"), - resetWarningKey: "smartCost.resetWarning", + resetWarningText: t("resetWarning"), activeHoursLabel: t("activeHoursLabel"), }; }, diff --git a/assets/js/components/Tariff/SmartFeedInPriority.vue b/assets/js/components/Tariff/SmartFeedInPriority.vue index 191a7a12d..e66af5bd2 100644 --- a/assets/js/components/Tariff/SmartFeedInPriority.vue +++ b/assets/js/components/Tariff/SmartFeedInPriority.vue @@ -53,7 +53,7 @@ export default defineComponent({ limitLabel: t("priceLimit"), activeHoursLabel: t("activeHoursLabel"), currentPriceLabel: t("priceLabel"), - resetWarningKey: "smartFeedInPriority.resetWarning", + resetWarningText: t("resetWarning"), }; }, }, diff --git a/assets/js/components/Tariff/SmartTariffBase.vue b/assets/js/components/Tariff/SmartTariffBase.vue index 2f296ab54..84409f849 100644 --- a/assets/js/components/Tariff/SmartTariffBase.vue +++ b/assets/js/components/Tariff/SmartTariffBase.vue @@ -123,7 +123,7 @@ export default defineComponent({ optionsStartAtZero: Boolean, activeHoursLabel: { type: String, required: true }, currentPriceLabel: String, - resetWarningKey: String, + resetWarningText: String, limitDirection: { type: String as PropType, default: "below" }, highlightColor: { type: String as PropType, default: "text-primary" }, isSlotActive: { @@ -261,11 +261,6 @@ export default defineComponent({ limitOperator() { return this.limitDirection === "below" ? "≤" : "≥"; }, - resetWarningText() { - return this.$t(this.resetWarningKey!, { - limit: this.formatValue(this.currentLimit!), - }); - }, }, watch: { currentLimit() { diff --git a/assets/js/views/Battery.vue b/assets/js/views/Battery.vue index f0afdff7c..3e8deba75 100644 --- a/assets/js/views/Battery.vue +++ b/assets/js/views/Battery.vue @@ -8,7 +8,7 @@ {{ $t("batterySettings.usageTab") }} -