added notif 2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import { conditionalOrderEnabledSetting } from '@/utils/config'
|
||||
import { conditionalOrderEnabledSetting, priceTriggerEnabledSetting } from '@/utils/config'
|
||||
|
||||
const HesabKetab: RouteRecordRaw = {
|
||||
name: 'hesabKetab',
|
||||
@@ -88,6 +88,11 @@ const HesabKetab: RouteRecordRaw = {
|
||||
icon: 'vuesax-linear:notification-bing',
|
||||
title: 'هشدار قیمت',
|
||||
order: 6
|
||||
},
|
||||
beforeEnter() {
|
||||
if (!priceTriggerEnabledSetting.value) {
|
||||
return { name: 'accountsMain' }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user