In admin settings, this Pr will add the UI for managing custom roles ( ref: https://github.com/chatwoot/chatwoot/pull/9995 ). It also handles the routing logic changes to accommodate fine-tuned permissions. --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: iamsivin <iamsivin@gmail.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
28 lines
622 B
JavaScript
28 lines
622 B
JavaScript
import { frontendURL } from 'dashboard/helper/URLHelper';
|
|
|
|
const SettingsWrapper = () => import('../SettingsWrapper.vue');
|
|
const CustomRolesHome = () => import('./Index.vue');
|
|
|
|
export default {
|
|
routes: [
|
|
{
|
|
path: frontendURL('accounts/:accountId/settings/custom-roles'),
|
|
component: SettingsWrapper,
|
|
children: [
|
|
{
|
|
path: '',
|
|
redirect: 'list',
|
|
},
|
|
{
|
|
path: 'list',
|
|
name: 'custom_roles_list',
|
|
meta: {
|
|
permissions: ['administrator'],
|
|
},
|
|
component: CustomRolesHome,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|