ethcc-demo/src/views/RequestsView.vue
Eric 77cdbbe6e8
Add all the bells and whistles
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
2024-06-14 18:13:35 +10:00

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>