Fix #670: Incorrect hiding of unused strings in Live View

This commit is contained in:
Thomas Basler 2023-03-08 12:55:44 +01:00
parent cbbbc21134
commit 61795172ff

View File

@ -94,16 +94,18 @@
<div class="card-body"> <div class="card-body">
<div class="row flex-row-reverse flex-wrap-reverse g-3"> <div class="row flex-row-reverse flex-wrap-reverse g-3">
<template v-for="chanType in [{obj: inverter.INV, name: 'INV'}, {obj: inverter.AC, name: 'AC'}, {obj: inverter.DC, name: 'DC'}].reverse()"> <template v-for="chanType in [{obj: inverter.INV, name: 'INV'}, {obj: inverter.AC, name: 'AC'}, {obj: inverter.DC, name: 'DC'}].reverse()">
<div v-for="channel in Object.keys(chanType.obj).sort().reverse().map(x=>+x)" :key="channel" class="col"> <template v-for="channel in Object.keys(chanType.obj).sort().reverse().map(x=>+x)" :key="channel">
<template v-if="(chanType.name != 'DC') || <template v-if="(chanType.name != 'DC') ||
(chanType.name == 'DC' && getSumIrridiation(inverter) == 0) || (chanType.name == 'DC' && getSumIrridiation(inverter) == 0) ||
(chanType.name == 'DC' && getSumIrridiation(inverter) > 0 && chanType.obj[channel].Irradiation?.v || 0 > 0) (chanType.name == 'DC' && getSumIrridiation(inverter) > 0 && chanType.obj[channel].Irradiation?.v || 0 > 0)
"> ">
<InverterChannelInfo :channelData="chanType.obj[channel]" <div class="col">
:channelType="chanType.name" <InverterChannelInfo :channelData="chanType.obj[channel]"
:channelNumber="channel" /> :channelType="chanType.name"
:channelNumber="channel" />
</div>
</template> </template>
</div> </template>
</template> </template>
</div> </div>
</div> </div>