mirror of
https://github.com/logos-storage/ethcc-demo.git
synced 2026-01-05 06:33:12 +00:00
Add tooltip, relative time, requestedAt However, fetching data is too slow now and there is a lag after render. Can try removing the fetching of slots when getting past StorageRequested events, and only do that fetch on the details page
21 lines
566 B
Vue
21 lines
566 B
Vue
<script setup>
|
|
import { storeToRefs } from 'pinia'
|
|
import { useRequestsStore } from '@/stores/requests'
|
|
import StorageRequests from '@/components/StorageRequests.vue'
|
|
import SkeletonLoading from '@/components/SkeletonLoading.vue'
|
|
import { computed } from 'vue'
|
|
|
|
const requestsStore = useRequestsStore()
|
|
const { loading, requests } = storeToRefs(requestsStore)
|
|
const isLoading = computed(
|
|
() => loading.value || !requests.value
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<SkeletonLoading v-if="isLoading" type="text" />
|
|
<StorageRequests v-else />
|
|
</div>
|
|
</template>
|