@@ -20,6 +20,8 @@ const appStore = useAppStore()
20
20
const nodeStore = useNodeStore ()
21
21
const modalsStore = useModalsStore ()
22
22
23
+ const developerMode = useCookie (" developerMode" , { default : () => false })
24
+
23
25
const head = computed (() => appStore .lastHead )
24
26
25
27
const mainLinks = reactive ([
@@ -94,7 +96,7 @@ const mainLinks = reactive([
94
96
{
95
97
name: " Ecosystem" ,
96
98
path: " /stats?tab=ecosystem" ,
97
- queryParam: {tab: " ecosystem" },
99
+ queryParam: { tab: " ecosystem" },
98
100
show: isMainnet (),
99
101
},
100
102
],
@@ -148,6 +150,7 @@ const toolsLinks = reactive([
148
150
path: " https://terminal.celenium.io" ,
149
151
external: true ,
150
152
new: true ,
153
+ hide: ! developerMode .value ,
151
154
},
152
155
{
153
156
icon: " drop" ,
@@ -178,6 +181,15 @@ const toolsLinks = reactive([
178
181
},
179
182
])
180
183
184
+ /** TEMP */
185
+ watch (
186
+ () => developerMode .value ,
187
+ () => {
188
+ const terminalLinkIdx = toolsLinks .findIndex ((l ) => l .name === " Terminal" )
189
+ toolsLinks[terminalLinkIdx].hide = ! developerMode .value
190
+ },
191
+ )
192
+
181
193
const handleNavigate = (url ) => {
182
194
window .location .replace (url)
183
195
}
@@ -216,7 +228,7 @@ const handleOnClose = () => {
216
228
</Flex >
217
229
218
230
<Flex direction =" column" gap =" 2" >
219
- <NavLink v-for =" link in mainLinks" :link =" link" @onClose =" handleOnClose" />
231
+ <NavLink v-for =" link in mainLinks.filter((l) => !l.hide) " :link =" link" @onClose =" handleOnClose" />
220
232
</Flex >
221
233
222
234
<Flex direction =" column" gap =" 2" >
@@ -231,7 +243,7 @@ const handleOnClose = () => {
231
243
</Flex >
232
244
233
245
<Flex v-if =" !isModularLinksCollapsed" direction =" column" gap =" 2" >
234
- <NavLink v-for =" link in modularLinks" :link =" link" @onClose =" handleOnClose" />
246
+ <NavLink v-for =" link in modularLinks.filter((l) => !l.hide) " :link =" link" @onClose =" handleOnClose" />
235
247
</Flex >
236
248
</Flex >
237
249
@@ -247,7 +259,7 @@ const handleOnClose = () => {
247
259
</Flex >
248
260
249
261
<Flex v-if =" !isToolsLinkCollapsed" direction =" column" gap =" 2" >
250
- <NavLink v-for =" link in toolsLinks" :link =" link" @onClose =" handleOnClose" />
262
+ <NavLink v-for =" link in toolsLinks.filter((l) => !l.hide) " :link =" link" @onClose =" handleOnClose" />
251
263
</Flex >
252
264
</Flex >
253
265
0 commit comments