گام نو
@@ -62,11 +62,16 @@ function isMenuActive(to) {
diff --git a/src/components/layout/AppTopbar.vue b/src/components/layout/AppTopbar.vue
index b661251..3f017b3 100644
--- a/src/components/layout/AppTopbar.vue
+++ b/src/components/layout/AppTopbar.vue
@@ -122,10 +122,7 @@ const menuItems = ref([
label: t('app.profile'),
icon: 'pi pi-user',
command: () => {
- const id = authStore.user?._id || authStore.user?.id;
- if (id) {
- router.push(`/users/edit/${id}`);
- }
+ router.push('/profile');
}
},
{
diff --git a/src/layouts/DashboardLayout.vue b/src/layouts/DashboardLayout.vue
index 92483fe..6af31f9 100644
--- a/src/layouts/DashboardLayout.vue
+++ b/src/layouts/DashboardLayout.vue
@@ -2,9 +2,9 @@
-
+
-
+
@@ -23,7 +23,12 @@ import AppBreadcrumb from '@/components/layout/AppBreadcrumb.vue';
background-color: var(--bg-primary);
}
+.layout-main-container {
+ min-width: 0;
+}
+
.layout-main {
+ min-width: 0;
min-height: calc(100vh - 60px);
}
diff --git a/src/locales/fa.json b/src/locales/fa.json
index 2cabb04..dc38570 100644
--- a/src/locales/fa.json
+++ b/src/locales/fa.json
@@ -13,7 +13,7 @@
"updated": "تاریخ بروزرسانی",
"loading": "در حال بارگذاری...",
"noData": "اطلاعاتی یافت نشد",
- "profile": "پروفایل",
+ "profile": "پروفایل من",
"logout": "خروج"
},
"auth": {
@@ -42,7 +42,8 @@
"contactInquiries": "درخواستهای تماس",
"certificates": "گواهی نامه ها",
"logs": "گزارش فعالیتها",
- "settings": "تنظیمات"
+ "settings": "تنظیمات",
+ "profile": "پروفایل من"
},
"users": {
"title": "مدیریت کاربران",
diff --git a/src/router/routes.js b/src/router/routes.js
index 4b3cbe3..eba8cbd 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -25,6 +25,12 @@ export const routes = [
name: 'DashboardHome',
component: () => import('@/views/dashboard/DashboardHomeView.vue')
},
+ {
+ path: 'profile',
+ name: 'Profile',
+ component: () => import('@/views/profile/ProfileView.vue'),
+ meta: { title: 'پروفایل' }
+ },
// Users
{
diff --git a/src/views/classes/ClassDetailView.vue b/src/views/classes/ClassDetailView.vue
index 6993aaf..e7dfd99 100644
--- a/src/views/classes/ClassDetailView.vue
+++ b/src/views/classes/ClassDetailView.vue
@@ -52,6 +52,22 @@
{{ data.phoneNumber || '—' }}
+
+
+
+
+
+
+
@@ -94,19 +110,30 @@
+
+
diff --git a/src/views/classes/ClassFormView.vue b/src/views/classes/ClassFormView.vue
index 8caf1c3..a1349ef 100644
--- a/src/views/classes/ClassFormView.vue
+++ b/src/views/classes/ClassFormView.vue
@@ -96,6 +96,10 @@
/>