always show hops and snr since we can't determine hops to us

This commit is contained in:
liamcottle 2024-12-23 21:10:06 +13:00
commit 226384d190
2 changed files with 9 additions and 7 deletions

View file

@ -97,13 +97,15 @@
{{ formatTimeAgo(peer.updated_at) }}
</span>
<!-- hops away (only shown for peers heard directly) -->
<span v-if="peer.hops != null && (peer.hops === 0 || peer.hops === 1)" class="flex my-auto text-sm text-gray-500 space-x-1">
<span> Direct</span>
<!-- hops away -->
<span v-if="peer.hops != null && peer.hops !== 128" class="flex my-auto text-sm text-gray-500 space-x-1">
<span></span>
<span v-if="peer.hops === 0 || peer.hops === 1">Direct</span>
<span v-else>{{ peer.hops }} hops</span>
</span>
<!-- snr (only shown for peers directly heard on rf) -->
<span v-if="peer.snr != null && (peer.hops === 0 || peer.hops === 1)" class="flex my-auto space-x-1">
<!-- snr -->
<span v-if="peer.snr != null" class="flex my-auto space-x-1">
<span></span>
<span>SNR {{ peer.snr }}</span>
</span>

View file

@ -54,9 +54,9 @@ class Utils {
if(parsedSeconds.minutes > 0){
if(parsedSeconds.minutes === 1){
return "a minute ago";
return "1 min ago";
} else {
return parsedSeconds.minutes + " minutes ago";
return parsedSeconds.minutes + " mins ago";
}
}