Skip to content

Commit

Permalink
[#131] fix active icon in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Jun 6, 2024
1 parent d9e4997 commit eb0fdd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/shared/ui/preview-card/preview-card-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const newPageLink = computed(() => {
<NuxtLink
:to="newPageLink"
class="preview-card-header__open"
title="Open event in the new window"
title="Open full event"
>
<IconSvg name="window-maximize" />
</NuxtLink>
Expand Down
6 changes: 3 additions & 3 deletions src/widgets/ui/layout-sidebar/layout-sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const logout = () => {
router.push("/login");
};
const { path } = useRoute();
const path = computed(() => useRoute().path);
</script>

<template>
Expand Down Expand Up @@ -129,10 +129,10 @@ const { path } = useRoute();
</NuxtLink>

<NuxtLink
to="/ray-dump"
to="/ray"
title="Ray Dump logs"
class="layout-sidebar__link"
:class="{ 'router-link-active': path.includes('/ray-dump') }"
:class="{ 'router-link-active': path.includes('/ray') }"
>
<IconSvg class="layout-sidebar__link-icon" name="inspector" />
</NuxtLink>
Expand Down

0 comments on commit eb0fdd7

Please sign in to comment.