+
{{ props.limitMode == 'amount' ? 'Geladen' : 'Ladestand' }}
{{
- props.limitMode == 'amount'
- ? formatEnergy(currentValue)
- : currentValue + '%'
+ props.limitMode === 'amount'
+ ? formatEnergy(props.currentValue)
+ : !props.vehicleSocType
+ ? 'Kein SoC-Modul konfiguriert'
+ : props.currentValue + '%'
}}
Ladestand eingeben
Ladestand aktualisieren
@@ -116,7 +119,7 @@ const props = defineProps({
vehicleSocType: {
type: String,
required: false,
- default: undefined,
+ default: null,
},
onEditSoc: {
type: Function,
diff --git a/packages/modules/web_themes/koala/source/src/components/SliderStandard.vue b/packages/modules/web_themes/koala/source/src/components/SliderStandard.vue
index 6e05b1b7bb..94e418666b 100644
--- a/packages/modules/web_themes/koala/source/src/components/SliderStandard.vue
+++ b/packages/modules/web_themes/koala/source/src/components/SliderStandard.vue
@@ -11,10 +11,11 @@
props.discreteValues ? props.discreteValues.length - 1 : props.max
"
:step="props.step"
- color="primary"
+ :color="props.color"
class="col"
- track-size="0.5em"
- thumb-size="1.7em"
+ :track-size="props.trackSize"
+ :thumb-size="props.thumbSize"
+ :thumb-color="props.thumbColor"
@touchstart.stop
@touchmove.stop
@touchend.stop
@@ -70,6 +71,22 @@ const props = defineProps({
type: Array as () => number[],
default: undefined,
},
+ color: {
+ type: String,
+ default: 'primary',
+ },
+ trackSize: {
+ type: String,
+ default: '0.5em',
+ },
+ thumbSize: {
+ type: String,
+ default: '1.5em',
+ },
+ thumbColor: {
+ type: String,
+ default: 'primary',
+ },
});
const emit = defineEmits<{