Skip to content

Commit b73a60a

Browse files
committed
fix(NavLink): active state && validators watcher
1 parent 5045a2b commit b73a60a

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

components/modules/navigation/NavLink.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ const handleClick = () => {
6060
}
6161
6262
&.active {
63+
background: var(--op-5);
64+
6365
& span {
64-
color: var(--brand);
66+
color: var(--txt-primary);
6567
}
6668
6769
& .link_icon:first-of-type {

pages/validators.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ const activeTab = ref(
160160
)
161161
const dropdownItems = computed(() => tabs.value.filter((tab) => tab !== activeTab.value))
162162
163+
watch(
164+
() => route.query,
165+
() => {
166+
if (route.query.status) activeTab.value = route.query.status
167+
},
168+
)
169+
163170
await getValidatorsStats()
164171
await getValidators()
165172

0 commit comments

Comments
 (0)