Move manager routes under /admin
This commit is contained in:
@@ -7,6 +7,8 @@ import {
|
||||
|
||||
definePageMeta({
|
||||
middleware: ['manager-only'],
|
||||
path: '/admin/bonuses/balances/:userId',
|
||||
alias: ['/bonus-system/:userId'],
|
||||
});
|
||||
|
||||
type TransactionItem = ManagerBonusAccountQuery['managerBonusAccount']['transactions'][number];
|
||||
@@ -37,7 +39,7 @@ function formatDateTime(value: string) {
|
||||
|
||||
<template>
|
||||
<section class="space-y-6">
|
||||
<NuxtLink to="/bonus-system" class="text-sm font-semibold text-[#0d854a]">← Назад к бонусам</NuxtLink>
|
||||
<NuxtLink to="/admin/bonuses/balances" class="text-sm font-semibold text-[#0d854a]">← Назад к бонусам</NuxtLink>
|
||||
|
||||
<div v-if="bonusAccountQuery.loading.value" class="manager-empty-state">
|
||||
Загружаем бонусный счёт...
|
||||
@@ -79,7 +81,7 @@ function formatDateTime(value: string) {
|
||||
</div>
|
||||
|
||||
<NuxtLink
|
||||
:to="`/bonus-system/withdrawals/${withdrawal.id}`"
|
||||
:to="`/admin/bonuses/requests/${withdrawal.id}`"
|
||||
class="text-sm font-semibold text-[#0d854a]"
|
||||
>
|
||||
Проверить выплату
|
||||
@@ -111,7 +113,7 @@ function formatDateTime(value: string) {
|
||||
|
||||
<NuxtLink
|
||||
v-if="transaction.orderId"
|
||||
:to="`/client-orders/${transaction.orderId}`"
|
||||
:to="`/admin/orders/${transaction.orderId}`"
|
||||
class="text-sm font-semibold text-[#0d854a]"
|
||||
>
|
||||
Открыть заказ
|
||||
|
||||
Reference in New Issue
Block a user