@@ -53,7 +53,7 @@ const bookmarkText = computed(() => {
5353
5454const activeTab = ref (" transactions" )
5555
56- const isRefetching = ref (false )
56+ const isLoading = ref (false )
5757const transactions = ref ([])
5858
5959
@@ -67,8 +67,6 @@ const handlePrev = () => {
6767 page .value -= 1
6868}
6969
70- console .log (props .block .message_types );
71-
7270/** Filters */
7371const filters = reactive ({
7472 status: {
@@ -208,7 +206,7 @@ const resetFilters = (target, refetch) => {
208206}
209207
210208const getTransactions = async () => {
211- isRefetching .value = true
209+ isLoading .value = true
212210
213211 const { data } = await fetchTransactionsByBlock ({
214212 height: props .block .height ,
@@ -231,7 +229,7 @@ const getTransactions = async () => {
231229 transactions .value = data .value
232230 cacheStore .current .transactions = transactions .value
233231
234- isRefetching .value = false
232+ isLoading .value = false
235233}
236234
237235await getTransactions ()
@@ -485,10 +483,10 @@ const handleViewRawTransactions = () => {
485483 </Flex >
486484 </Flex >
487485
488- <Flex v-if =" activeTab === 'transactions'" direction =" column" :class =" [$style.table, isRefetching && $style.disabled]" >
486+ <Flex v-if =" activeTab === 'transactions'" direction =" column" :class =" [$style.table, isLoading && $style.disabled]" >
489487 <Flex wrap =" wrap" align =" center" justify =" start" gap =" 8" :class =" $style.filters" >
490488 <Popover :open =" isStatusPopoverOpen" @on-close =" onStatusPopoverClose" width =" 200" >
491- <Button @click =" handleOpenStatusPopover" type =" secondary" size =" mini" >
489+ <Button @click =" handleOpenStatusPopover" type =" secondary" size =" mini" :disabled = " !transactions.length " >
492490 <Icon name =" plus-circle" size =" 12" color =" tertiary" />
493491 <Text color =" secondary" >Status</Text >
494492
@@ -526,7 +524,7 @@ const handleViewRawTransactions = () => {
526524 </Popover >
527525
528526 <Popover :open =" isMessageTypePopoverOpen" @on-close =" onMessageTypePopoverClose" width =" 250" >
529- <Button @click =" handleOpenMessageTypePopover" type =" secondary" size =" mini" >
527+ <Button @click =" handleOpenMessageTypePopover" type =" secondary" size =" mini" :disabled = " !transactions.length " >
530528 <Icon name =" plus-circle" size =" 12" color =" tertiary" />
531529 <Text color =" secondary" >Message Type</Text >
532530
@@ -952,7 +950,7 @@ const handleViewRawTransactions = () => {
952950}
953951
954952.pagination {
955- padding : 0 16px 16px 16px ;
953+ padding : 8 px 16px 16px 16px ;
956954}
957955
958956@media (max-width : 800px ) {
0 commit comments