feat: Create portal UI improvements (#5261)
This commit is contained in:
@@ -3,18 +3,19 @@ import { getPortalRoute } from './helpers/routeHelper';
|
||||
|
||||
const ListAllPortals = () => import('./pages/portals/ListAllPortals');
|
||||
const NewPortal = () => import('./pages/portals/NewPortal');
|
||||
|
||||
const EditPortal = () => import('./pages/portals/EditPortal');
|
||||
const ShowPortal = () => import('./pages/portals/ShowPortal');
|
||||
|
||||
const PortalDetails = () => import('./pages/portals/PortalDetails');
|
||||
const PortalCustomization = () => import('./pages/portals/PortalCustomization');
|
||||
const PortalSettingsFinish = () =>
|
||||
import('./pages/portals/PortalSettingsFinish');
|
||||
const ListAllCategories = () => import('./pages/categories/ListAllCategories');
|
||||
const NewCategory = () => import('./pages/categories/NewCategory');
|
||||
const EditCategory = () => import('./pages/categories/EditCategory');
|
||||
// const ShowCategory = () => import('./pages/categories/ShowCategory');
|
||||
const ListCategoryArticles = () =>
|
||||
import('./pages/articles/ListCategoryArticles');
|
||||
|
||||
const ListAllArticles = () => import('./pages/articles/ListAllArticles');
|
||||
|
||||
const NewArticle = () => import('./pages/articles/NewArticle');
|
||||
const EditArticle = () => import('./pages/articles/EditArticle');
|
||||
|
||||
@@ -27,9 +28,27 @@ const portalRoutes = [
|
||||
},
|
||||
{
|
||||
path: getPortalRoute('new'),
|
||||
name: 'new_portal',
|
||||
roles: ['administrator', 'agent'],
|
||||
component: NewPortal,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'new_portal_information',
|
||||
component: PortalDetails,
|
||||
roles: ['administrator'],
|
||||
},
|
||||
{
|
||||
path: ':portal_slug/customization',
|
||||
name: 'portal_customization',
|
||||
component: PortalCustomization,
|
||||
roles: ['administrator'],
|
||||
},
|
||||
{
|
||||
path: ':portal_slug/finish',
|
||||
name: 'portal_finish',
|
||||
component: PortalSettingsFinish,
|
||||
roles: ['administrator'],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: getPortalRoute(':portalSlug'),
|
||||
|
||||
Reference in New Issue
Block a user