Move manager routes under /admin
This commit is contained in:
@@ -5,6 +5,8 @@ import { messengerConnectionAvatarSrc } from '~/composables/useMessengerConnecti
|
||||
|
||||
definePageMeta({
|
||||
middleware: ['manager-only'],
|
||||
path: '/admin/orders/clients',
|
||||
alias: ['/clients'],
|
||||
});
|
||||
|
||||
const search = ref('');
|
||||
@@ -64,7 +66,7 @@ function userInitials(fullName: string) {
|
||||
search-placeholder="Имя, компания или email"
|
||||
>
|
||||
<template #controls>
|
||||
<NuxtLink to="/clients/invite" class="btn btn-primary border-0">
|
||||
<NuxtLink to="/admin/orders/clients/invite" class="btn btn-primary border-0">
|
||||
Пригласить
|
||||
</NuxtLink>
|
||||
</template>
|
||||
@@ -81,7 +83,7 @@ function userInitials(fullName: string) {
|
||||
<UsersGridCard
|
||||
v-for="user in visibleUsers"
|
||||
:key="user.id"
|
||||
:to="`/clients/${user.id}`"
|
||||
:to="`/admin/orders/clients/${user.id}`"
|
||||
:full-name="user.fullName"
|
||||
:avatar-src="messengerConnectionAvatarSrc(user.telegramConnection)"
|
||||
:initials="userInitials(user.fullName)"
|
||||
|
||||
Reference in New Issue
Block a user