From 7f89779a84096e0ecc77477946c478c21fd1ffe6 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Tue, 9 Mar 2021 01:14:49 +1300 Subject: [PATCH] Hide empty timer --- html/src/vr.pug | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/src/vr.pug b/html/src/vr.pug index bc7297cc..7ae79d82 100644 --- a/html/src/vr.pug +++ b/html/src/vr.pug @@ -281,9 +281,10 @@ html br span {{ device[2] }}% .x-containerbottom - span(style="float:right") Timer: {{ lastLocationTimer }} - span(style="display:inline-block") Players: {{ lastLocation.playerCount }} - span(style="display:inline-block;font-weight:bold") {{ lastLocation.friendCount !== 0 ? `‎‎‎‎‎‎‎‎‏‏‎ ‎(${lastLocation.friendCount})` : ''}} + template(v-if="lastLocation.date != 0") + span(style="float:right") Timer: {{ lastLocationTimer }} + span(style="display:inline-block") Players: {{ lastLocation.playerCount }} + span(style="display:inline-block;font-weight:bold") {{ lastLocation.friendCount !== 0 ? `‎‎‎‎‎‎‎‎‏‏‎ ‎(${lastLocation.friendCount})` : ''}} br span(style="float:right") {{ currentTime | formatDate('YYYY-MM-DD HH:MI:SS AMPM') }} span CPU {{ cpuUsage }}%