Fix delay on updating 'Online For' when opening user dialog

I don't like or understand Vue
This commit is contained in:
Natsumi
2020-12-17 20:24:11 +13:00
committed by pypy
parent 8a0a25309f
commit 74fa583b99
2 changed files with 41 additions and 5 deletions

View File

@@ -772,12 +772,9 @@ html
span.extra(v-else style="color:#F56C6C") Deny
.x-friend-item
.detail
span.name(v-if="userDialog.ref.state != 'offline' && userDialog.ref.state != 'active' && userDialog.ref.state != ''") Online For
span.name(v-if="userDialog.ref.state === 'online'") Online For
span.name(v-else) Offline For
span.extra
timer(v-if="userDialog.ref.state != 'offline' && userDialog.ref.state != 'active' && userDialog.ref.state != ''" :epoch="userDialog.ref.$online_for")
timer(v-else-if="userDialog.ref.$offline_for" :epoch="userDialog.ref.$offline_for")
span(v-else) -
span.extra(v-text="onlineFor(userDialog)")
.x-friend-item
.detail
span.name Last Login