iachat/app/javascript/dashboard/routes/dashboard/notifications/routes.js

25 lines
631 B
JavaScript

/* eslint arrow-body-style: 0 */
import NotificationsView from './components/NotificationsView.vue';
import { frontendURL } from '../../../helper/URLHelper';
import SettingsWrapper from '../settings/Wrapper';
export const routes = [
{
path: frontendURL('accounts/:accountId/notifications'),
component: SettingsWrapper,
props: {
headerTitle: 'NOTIFICATIONS_PAGE.HEADER',
icon: 'alert',
showNewButton: false,
},
children: [
{
path: '',
name: 'notifications_index',
component: NotificationsView,
roles: ['administrator', 'agent'],
},
],
},
];