@@ -10,7 +10,7 @@ import NavLink from "@/components/modules/navigation/NavLink.vue"
1010/** Utils */
1111import { getNetworkName } from " @/services/utils/general"
1212import { StatusMap } from " @/services/constants/node"
13- import { isMobile } from " @/services/utils"
13+ import { isMainnet , isMobile } from " @/services/utils"
1414
1515/** Store */
1616import { useAppStore } from " ~/store/app"
@@ -52,16 +52,19 @@ const mainLinks = reactive([
5252 name: " Active" ,
5353 path: " /validators?status=active&page=1" ,
5454 queryParam: {status: " active" },
55+ show: true ,
5556 },
5657 {
5758 name: " Jailed" ,
5859 path: " /validators?status=jailed&page=1" ,
5960 queryParam: {status: " jailed" },
61+ show: true ,
6062 },
6163 {
6264 name: " Inactive" ,
6365 path: " /validators?status=inactive&page=1" ,
6466 queryParam: {status: " inactive" },
67+ show: true ,
6568 },
6669 ],
6770 },
@@ -74,21 +77,25 @@ const mainLinks = reactive([
7477 name: " General" ,
7578 path: " /stats?tab=general" ,
7679 queryParam: {tab: " general" },
80+ show: true ,
7781 },
7882 {
7983 name: " Blocks" ,
8084 path: " /stats?tab=blocks" ,
8185 queryParam: {tab: " blocks" },
86+ show: true ,
8287 },
8388 {
8489 name: " Rollups" ,
8590 path: " /stats?tab=rollups" ,
8691 queryParam: {tab: " rollups" },
92+ show: true ,
8793 },
8894 {
8995 name: " Ecosystem" ,
9096 path: " /stats?tab=ecosystem" ,
9197 queryParam: {tab: " ecosystem" },
98+ show: isMainnet (),
9299 },
93100 ],
94101 },
@@ -104,11 +111,13 @@ const modularLinks = reactive([
104111 {
105112 name: " Cost Savings" ,
106113 path: " /calculators/savings" ,
114+ show: true ,
107115 },
108116 {
109117 name: " Register rollup" ,
110118 path: " https://forms.gle/nimJyQJG4Lb4BTcG7" ,
111119 external: true ,
120+ show: true ,
112121 },
113122 ],
114123 },
@@ -120,6 +129,7 @@ const modularLinks = reactive([
120129 {
121130 name: " Treemap View" ,
122131 path: " /namespaces/treemap" ,
132+ show: true ,
123133 },
124134 ],
125135 },
@@ -174,6 +184,10 @@ const newLinks = reactive([
174184const handleNavigate = (url ) => {
175185 window .location .replace (url)
176186}
187+
188+ const handleOnClose = () => {
189+ appStore .showSidebar = false
190+ }
177191 </script >
178192
179193<template >
@@ -204,7 +218,7 @@ const handleNavigate = (url) => {
204218 </Flex >
205219
206220 <Flex direction =" column" gap =" 2" >
207- <NavLink v-for =" link in mainLinks" :link =" link" @onClose =" appStore.showSidebar = false " />
221+ <NavLink v-for =" link in mainLinks" :link =" link" @onClose =" handleOnClose " />
208222 </Flex >
209223
210224 <Flex direction =" column" gap =" 2" >
@@ -219,7 +233,7 @@ const handleNavigate = (url) => {
219233 </Flex >
220234
221235 <Flex v-if =" !isModularLinksCollapsed" direction =" column" gap =" 2" >
222- <NavLink v-for =" link in modularLinks" :link =" link" @onClose =" appStore.showSidebar = false " />
236+ <NavLink v-for =" link in modularLinks" :link =" link" @onClose =" handleOnClose " />
223237 </Flex >
224238 </Flex >
225239
@@ -235,7 +249,7 @@ const handleNavigate = (url) => {
235249 </Flex >
236250
237251 <Flex v-if =" !isToolsLinkCollapsed" direction =" column" gap =" 2" >
238- <NavLink v-for =" link in toolsLinks" :link =" link" @onClose =" appStore.showSidebar = false " />
252+ <NavLink v-for =" link in toolsLinks" :link =" link" @onClose =" handleOnClose " />
239253 </Flex >
240254 </Flex >
241255
0 commit comments