added notif 2

This commit is contained in:
2026-07-23 22:24:26 +03:30
parent d505f3b5bd
commit bd441a0e8e
31 changed files with 2105 additions and 34 deletions
+16 -1
View File
@@ -2,7 +2,7 @@ import type { RouteRecordRaw } from 'vue-router'
import { isDeployAdmin } from '@/utils/deployAdmin'
import { hasSmsPanelAccess } from '@/utils/smsPanelAccess'
import { useUserStore } from '@/store/userStore'
import { bannerEnabledSetting, trackingSystemsEnabledSetting } from '@/utils/config'
import { bannerEnabledSetting, trackingSystemsEnabledSetting, appNotificationEnabledSetting } from '@/utils/config'
const Setting: RouteRecordRaw = {
name: 'settings',
@@ -109,6 +109,21 @@ const Setting: RouteRecordRaw = {
}
}
},
{
name: 'appNotifications',
path: 'app-notifications',
component: () => import('@/pages/menuPages/appNotifications/index.vue'),
meta: {
icon: 'vuesax-linear:notification-bing',
title: 'اعلان‌ها',
order: 4.5
},
beforeEnter() {
if (!appNotificationEnabledSetting.value) {
return { name: 'configuration' }
}
}
},
{
name: 'smsMain',
path: 'sms',