Skip to content

Commit

Permalink
[qa] use named routes
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Jul 23, 2024
1 parent 4074a66 commit fc6e46d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/components/sides/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,22 @@
</router-link>
</p>
<p @click="toggleSidebar()">
<router-link to="/task-types">
<router-link :to="{ name: 'task-types' }">
<kitsu-icon class="nav-icon" name="task-types" />
{{ $t('task_types.title') }}
</router-link>
</p>
<p @click="toggleSidebar()">
<router-link to="/task-status" class="task-status-link">
<router-link
:to="{ name: 'task-status' }"
class="task-status-link"
>
<kitsu-icon class="nav-icon" name="task-status" />
{{ $t('task_status.title') }}
</router-link>
</p>
<p @click="toggleSidebar()">
<router-link to="/asset-types">
<router-link :to="{ name: 'asset-types' }">
<kitsu-icon class="nav-icon" name="asset-types" />
{{ $t('asset_types.title') }}
</router-link>
Expand Down
5 changes: 4 additions & 1 deletion src/components/tops/Topbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@
>
<ul>
<li>
<router-link to="/profile" @click.native="toggleUserMenu()">
<router-link
:to="{ name: 'profile' }"
@click.native="toggleUserMenu()"
>
{{ $t('main.profile') }}
</router-link>
</li>
Expand Down

0 comments on commit fc6e46d

Please sign in to comment.