feat: add routes

This commit is contained in:
Muhsin Keloth
2024-04-17 10:46:53 +05:30
parent 8fcf476206
commit de5820f943
3 changed files with 33 additions and 0 deletions
@@ -0,0 +1,11 @@
<template>
<div class="flex items-center w-full overflow-y-auto">
<div
class="flex flex-col h-full p-5 pt-16 mx-auto my-0 bg-white dark:bg-slate-900 font-inter"
>
<div class="flex flex-col gap-8 sm:max-w-3xl">
<h1>Personal settings</h1>
</div>
</div>
</div>
</template>
@@ -0,0 +1,20 @@
import { frontendURL } from '../../../../helper/URLHelper';
const Index = () => import('./Index.vue');
export default {
routes: [
{
path: frontendURL('accounts/:accountId/personal'),
name: 'personal_settings',
roles: ['administrator', 'agent'],
component: Index,
props: {
headerTitle: 'PROFILE_SETTINGS.TITLE',
icon: 'edit',
showNewButton: false,
showSidemenuIcon: false,
},
},
],
};
@@ -18,6 +18,7 @@ import reports from './reports/reports.routes';
import store from '../../../store';
import sla from './sla/sla.routes';
import teams from './teams/teams.routes';
import personal from './personal/personal.routes';
export default {
routes: [
@@ -50,5 +51,6 @@ export default {
...reports.routes,
...sla.routes,
...teams.routes,
...personal.routes,
],
};