Skip to content

Commit 7fd6a31

Browse files
committed
fix(McuCard): hide empty fields
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
1 parent 8730137 commit 7fd6a31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/widgets/system/McuCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616

1717
<v-simple-table dense>
1818
<tbody>
19-
<tr>
19+
<tr v-if="mcuConstants.MCU">
2020
<th>{{ $t('app.system_info.label.micro_controller') }}</th>
2121
<td>{{ mcuConstants.MCU }}</td>
2222
</tr>
23-
<tr>
23+
<tr v-if="mcuConstants.CLOCK_FREQ">
2424
<th>{{ $t('app.system_info.label.frequency') }}</th>
2525
<td>{{ $filters.getReadableFrequencyString(+mcuConstants.CLOCK_FREQ) }}</td>
2626
</tr>
2727
<tr v-if="klippyApp.isKalico && mcu.app">
2828
<th>{{ $t('app.system_info.label.application') }}</th>
2929
<td>{{ mcu.app }}</td>
3030
</tr>
31-
<tr>
31+
<tr v-if="mcu.mcu_version">
3232
<th>{{ $t('app.system_info.label.version') }}</th>
3333
<td>{{ mcu.mcu_version }}</td>
3434
</tr>

0 commit comments

Comments
 (0)