Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
</div>
</div>
</div>
<div class="row justify-between items-center">
<div v-if="timeChargingEnabled" class="row justify-between items-center">
<div class="text-subtitle2">Termine Zeitladen:</div>
</div>
<div
v-if="plans.length === 0"
v-if="plans.length === 0 && timeChargingEnabled"
class="row q-mt-sm q-pa-sm bg-primary text-white no-wrap message-text"
color="primary"
style="border-radius: 10px"
>
<q-icon name="info" size="sm" class="q-mr-xs" />
Keine Zeitpläne vorhanden.
</div>
<div v-else>
<div v-else-if="timeChargingEnabled">
<div v-for="(plan, index) in plans" :key="index" class="row q-mt-sm">
<ChargePointTimeChargingPlanButton
class="full-width"
Expand All @@ -45,6 +45,10 @@ const mqttStore = useMqttStore();
const plans = computed(() =>
mqttStore.vehicleTimeChargingPlans(props.chargePointId),
);

const timeChargingEnabled = mqttStore.chargePointConnectedVehicleTimeCharging(
props.chargePointId,
);
</script>

<style scoped>
Expand Down