Merge branch 'pr789' into dev

This commit is contained in:
Thomas Basler 2023-04-11 23:24:09 +02:00
commit c0b9f0eab6

View File

@ -17,29 +17,31 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<table class="table table-striped table-hover"> <div class="table-responsive">
<thead> <table class="table table-striped table-hover">
<tr> <thead>
<th scope="col">{{ $t('inverterchannelinfo.Property') }}</th> <tr>
<th style="text-align: right" scope="col">{{ $t('inverterchannelinfo.Value') }}</th> <th scope="col">{{ $t('inverterchannelinfo.Property') }}</th>
<th scope="col">{{ $t('inverterchannelinfo.Unit') }}</th> <th style="text-align: right" scope="col">{{ $t('inverterchannelinfo.Value') }}</th>
</tr> <th scope="col">{{ $t('inverterchannelinfo.Unit') }}</th>
</thead> </tr>
<tbody> </thead>
<tr v-for="(property, key) in channelData" :key="`prop-${key}`"> <tbody>
<template v-if="key != 'name' && property"> <tr v-for="(property, key) in channelData" :key="`prop-${key}`">
<th scope="row">{{ $t('inverterchannelproperty.' + key) }}</th> <template v-if="key != 'name' && property">
<td style="text-align: right"> <th scope="row">{{ $t('inverterchannelproperty.' + key) }}</th>
{{ $n(property.v, 'decimal', { <td style="text-align: right">
minimumFractionDigits: property.d, {{ $n(property.v, 'decimal', {
maximumFractionDigits: property.d}) minimumFractionDigits: property.d,
}} maximumFractionDigits: property.d})
</td> }}
<td>{{ property.u }}</td> </td>
</template> <td>{{ property.u }}</td>
</tr> </template>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
</div> </div>
</template> </template>