Skip to content

Commit

Permalink
Fix: Show firmware update tooltip only if newer version available
Browse files Browse the repository at this point in the history
Closes #1796
  • Loading branch information
tbnobody committed Mar 12, 2024
1 parent 57a997b commit 9634c93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webapp/src/components/FirmwareInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@
<tr>
<th>{{ $t('firmwareinfo.FirmwareUpdate') }}</th>
<td v-if="modelAllowVersionInfo">
<a :href="systemStatus.update_url" target="_blank" v-tooltip
<a v-if="systemStatus.update_url !== undefined" :href="systemStatus.update_url" target="_blank" v-tooltip
:title="$t('firmwareinfo.FirmwareUpdateHint')">
<span class="badge" :class="systemStatus.update_status">
{{ systemStatus.update_text }}
</span>
</a>
<span v-else class="badge" :class="systemStatus.update_status">
{{ systemStatus.update_text }}
</span>
</td>
<td v-else>
<div class="form-check form-switch">
Expand Down

0 comments on commit 9634c93

Please sign in to comment.