diff --git a/src/App.vue b/src/App.vue index 427c0b6..3a47b93 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,14 +4,17 @@ import { useRequestsStore } from '@/stores/requests' import { RouterView } from 'vue-router' import Balance from '@/components/Balance.vue' import BlockNumber from '@/components/BlockNumber.vue' +import ToastNotification from '@/components/toasts/ToastNotification.vue' import AppNav from '@/components/AppNav.vue' import ContractEventAlerts from '@/components/ContractEventAlerts.vue' import { initDrawers, initDismisses } from 'flowbite' import NavBreadcrumb from './components/NavBreadcrumb.vue' +import { storeToRefs } from 'pinia' const alerts = ref([]) const id = ref(0) const requestsStore = useRequestsStore() +const { loadingRecent } = storeToRefs(requestsStore) function addAlert(type, event, state) { alerts.value.push({ @@ -181,6 +184,11 @@ onUnmounted(() => { + diff --git a/src/components/toasts/ToastNotification.vue b/src/components/toasts/ToastNotification.vue new file mode 100644 index 0000000..c362b89 --- /dev/null +++ b/src/components/toasts/ToastNotification.vue @@ -0,0 +1,17 @@ + + + \ No newline at end of file diff --git a/src/stores/requests.js b/src/stores/requests.js index 7a9a3f3..b509ea3 100644 --- a/src/stores/requests.js +++ b/src/stores/requests.js @@ -380,6 +380,7 @@ export const useRequestsStore = defineStore( fetchRequestDetails, listenForNewEvents, loading, + loadingRecent, fetched } },