ui: hide info on no users

zio/stable
Anthony Fu 2022-12-27 21:21:53 +01:00
parent 45d1a9a2bd
commit fd5f817087
1 changed files with 11 additions and 9 deletions

View File

@ -70,6 +70,7 @@ async function importTokens() {
</div> </div>
</template> </template>
<div p4> <div p4>
<template v-if="loggedInUsers.length">
<div flex="~ col gap2"> <div flex="~ col gap2">
<div v-for="user of loggedInUsers" :key="user.account.id"> <div v-for="user of loggedInUsers" :key="user.account.id">
<AccountInfo :account="user.account" :hover-card="false" /> <AccountInfo :account="user.account" :hover-card="false" />
@ -80,6 +81,7 @@ async function importTokens() {
<div i-ri-download-2-line /> <div i-ri-download-2-line />
Export User Tokens Export User Tokens
</button> </button>
</template>
<button btn-text flex="~ gap-2" items-center @click="importTokens"> <button btn-text flex="~ gap-2" items-center @click="importTokens">
<div i-ri-upload-2-line /> <div i-ri-upload-2-line />
Import User Tokens Import User Tokens