changed directory
This commit is contained in:
+30
-1
@@ -22,6 +22,7 @@ const profileLinks = ref([
|
||||
icon: "bi:cart",
|
||||
title: "خرید ها و سفارش ها",
|
||||
path: { name: "profile-purchases-and-orders" },
|
||||
matchPattern: /^profile-purchases-and-orders/,
|
||||
},
|
||||
{
|
||||
icon: "bi:ticket",
|
||||
@@ -29,6 +30,11 @@ const profileLinks = ref([
|
||||
path: { name: "profile-tickets" },
|
||||
matchPattern: /^profile-ticket/,
|
||||
},
|
||||
{
|
||||
icon: "bi:bell",
|
||||
title: "اعلانات",
|
||||
path: { name: "profile-notifications" },
|
||||
},
|
||||
]);
|
||||
|
||||
const isLinkActive = (link: any) => {
|
||||
@@ -88,7 +94,7 @@ await suspense();
|
||||
:class="
|
||||
isLinkActive(link)
|
||||
? 'bg-black text-slate-100 **:fill-slate-100'
|
||||
: '**:fill-black'
|
||||
: '**:fill-black hover:bg-gray-200'
|
||||
"
|
||||
class="flex items-center justify-between transition-all rounded-lg py-4 px-3"
|
||||
>
|
||||
@@ -101,6 +107,29 @@ await suspense();
|
||||
|
||||
<Icon name="bi:chevron-left" class="transition-all" />
|
||||
</NuxtLink>
|
||||
|
||||
<LogoutModal>
|
||||
<template #trigger>
|
||||
<button
|
||||
class="w-full flex items-center cursor-pointer justify-between transition-all rounded-lg py-4 px-3 hover:bg-danger-100 text-danger-500 **:fill-danger-100"
|
||||
>
|
||||
<span class="flex-center gap-3">
|
||||
<div class="size-5 flex-center">
|
||||
<Icon
|
||||
name="bi:arrow-bar-right"
|
||||
class="**:fill-danger-500"
|
||||
/>
|
||||
</div>
|
||||
<span class="text-sm"> خروج از حساب </span>
|
||||
</span>
|
||||
|
||||
<Icon
|
||||
name="bi:chevron-left"
|
||||
class="transition-all **:fill-danger-500"
|
||||
/>
|
||||
</button>
|
||||
</template>
|
||||
</LogoutModal>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user