Skip to content

Commit

Permalink
add chainInfoStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Mar 11, 2024
1 parent 6919c5b commit 1bca987
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/RwsActivate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
:price="price"
activationtime="2"
:available="freeAuctions"
:chainInfoUploaded="chainInfoStatus"
:rwsExpiration="expiredate"
@on-activate="onActivate"
/>
{{ chainInfoStatus }}
</robo-layout-section>
</template>

Expand All @@ -25,6 +27,7 @@ export default {
setup() {
const price = ref(0);
const freeAuctions = ref(0);
const chainInfoStatus = ref(false);
let unsubscribeBlock = null;
const robonomics = useRobonomics();
Expand All @@ -41,6 +44,7 @@ export default {
const minimalBid = await robonomics.rws.getMinimalBid();
price.value = minimalBid.add(bnToBn(1));
chainInfoStatus.value = true;
})();
onUnmounted(() => {
Expand Down Expand Up @@ -115,6 +119,7 @@ export default {
freeAuctions,
price: priceFormat,
expiredate: subscription.validUntil,
chainInfoStatus,
onActivate
};
}
Expand Down

0 comments on commit 1bca987

Please sign in to comment.