feat: add DISC profiles and a sales copilot as an org module
Help reps capture a customer's likely behavior style and get negotiation guidance, with the feature gated from super admin. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -82,6 +82,11 @@ export const router = createRouter({
|
||||
name: 'reports',
|
||||
component: () => import('@/views/ReportsView.vue'),
|
||||
},
|
||||
{
|
||||
path: 'behavior/disc',
|
||||
name: 'disc-report',
|
||||
component: () => import('@/views/DiscReportView.vue'),
|
||||
},
|
||||
{
|
||||
path: 'sales/forecast',
|
||||
name: 'sales-forecast',
|
||||
@@ -563,6 +568,10 @@ router.beforeEach((to) => {
|
||||
) {
|
||||
return { name: 'home' };
|
||||
}
|
||||
if (String(to.path).startsWith('/behavior')) {
|
||||
const modules = auth.user?.enabledModules;
|
||||
if (modules && !modules.includes('behavior')) return { name: 'home' };
|
||||
}
|
||||
if (String(to.path).startsWith('/finance')) {
|
||||
const modules = auth.user?.enabledModules;
|
||||
if (modules && !modules.includes('treasury')) return { name: 'home' };
|
||||
|
||||
Reference in New Issue
Block a user