Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Show the string "N/A" instead of a mangled date for null values of My…
Browse files Browse the repository at this point in the history
… Znode.

Closes #101.
  • Loading branch information
sproxet committed Oct 22, 2019
1 parent 1ec9100 commit b5182e1
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions src/renderer/components/ZnodePage/MyZnode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,31 @@
<section class="last-seen">
<header>{{ $t('znodes.my-znode.label__last-seen') }}</header>
<main>
<timeago
:datetime="znode.lastSeen"
:auto-update="30"
/>
<div v-if="znode.lastSeen">
<timeago
:datetime="znode.lastSeen"
:auto-update="30"
/>
</div>

<div v-else>
N/A
</div>
</main>
</section>
<section class="active-since">
<header>{{ $t('znodes.my-znode.label__active-since') }}</header>
<main>
<timeago
:datetime="znode.activeSince"
:auto-update="30"
/>
<div v-if="znode.activeSince">
<timeago
:datetime="znode.activeSince"
:auto-update="30"
/>
</div>

<div v-else>
N/A
</div>
</main>
</section>
<template v-if="belongsToWallet">
Expand Down

0 comments on commit b5182e1

Please sign in to comment.