mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
always show hops and snr since we can't determine hops to us
This commit is contained in:
parent
d6dadad7cb
commit
226384d190
2 changed files with 9 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue