Skip to content

Commit 3102f2a

Browse files
committed
Fix pie charts v2
1 parent 99fbaaf commit 3102f2a

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ onMounted(async () => {
5555
const gasPrice = await fetchGasPrice()
5656
appStore.gas = gasPrice
5757
58-
enumStore.init()
58+
await enumStore.init()
5959
6060
window.onbeforeunload = function () {
6161
Socket.close()

components/modules/stats/BarChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const buildChart = (chart, cData, pData, onEnter, onLeave) => {
9595
9696
return `${tia(value, 2)} TIA`
9797
case 'seconds':
98-
return `${truncateDecimalPart(value / 1_000, 1)}s`
98+
return `${truncateDecimalPart(value / 1_000, 3)}s`
9999
default:
100100
return comma(value)
101101
}

components/modules/stats/LineChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const buildChart = (chart, cData, pData, onEnter, onLeave) => {
8282
8383
return `${tia(value, 2)} TIA`
8484
case 'seconds':
85-
return `${truncateDecimalPart(value / 1_000, 1)}s`
85+
return `${truncateDecimalPart(value / 1_000, 3)}s`
8686
default:
8787
return comma(value)
8888
}

components/modules/stats/tabs/RollupsTab.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,13 @@ onBeforeMount(async () => {
5656
<RollupsBubbleChart v-if="!isLoading" :series="series" />
5757
</Flex>
5858

59-
<Flex align="center" direction="column" gap="12" wide>
59+
<Flex v-if="!isLoading" align="center" direction="column" gap="12" wide>
6060
<Flex align="center" justify="between" wide :class="$style.section">
6161
<Text size="16" weight="600" color="primary" justify="start">Top Rollups</Text>
6262
</Flex>
6363

6464
<Flex align="center" justify="between" gap="16" wide :class="$style.charts_wrapper">
6565
<PieChartCard
66-
v-if="!isLoading"
6766
v-for="s in series"
6867
:series="s"
6968
:data="series.data"

pages/txs.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ const router = useRouter()
7878
7979
/** Filters */
8080
const msgTypes = computed(() => enumStore.enums.messageTypes.sort())
81-
8281
const filters = reactive({
8382
status: {
8483
success: false,
@@ -331,6 +330,13 @@ watch(
331330
},
332331
)
333332
333+
watch(
334+
() => msgTypes.value,
335+
() => {
336+
filters.message_type = msgTypes.value?.reduce((a, b) => ({ ...a, [b]: false }), {})
337+
}
338+
)
339+
334340
const handleSort = (by) => {
335341
/** temp. only for time */
336342
if (!["time"].includes(by)) return

0 commit comments

Comments
 (0)