Don't show subscription info until loading is finished
This commit is contained in:
parent
9803775aa1
commit
dd821a8760
1 changed files with 5 additions and 3 deletions
|
@ -32,12 +32,14 @@
|
||||||
{{ subscription.pricePerMonth }} {{ subscription.tokenSymbol }}
|
{{ subscription.pricePerMonth }} {{ subscription.tokenSymbol }}
|
||||||
<span class="price-subtext">per month</span>
|
<span class="price-subtext">per month</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="status">
|
<div class="status" v-if="subscriptionState">
|
||||||
<template v-if="subscriptionState && !subscriptionState.senderBalance.isZero()">
|
<template v-if="subscriptionState.senderBalance.isZero()">
|
||||||
|
You are not subscribed yet
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
<div>Your balance is {{ subscription.formatAmount(subscriptionState.senderBalance) }} {{ subscription.tokenSymbol }}</div>
|
<div>Your balance is {{ subscription.formatAmount(subscriptionState.senderBalance) }} {{ subscription.tokenSymbol }}</div>
|
||||||
<div>Subscription expires {{ subscription.getExpirationDate(subscriptionState.senderBalance).toLocaleString() }}</div>
|
<div>Subscription expires {{ subscription.getExpirationDate(subscriptionState.senderBalance).toLocaleString() }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>You are not subscribed yet</template>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
Loading…
Reference in a new issue