Skip to content

Commit

Permalink
refactor: rollback routes [WTEL-3717]
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Dekhtyaruk committed Dec 18, 2023
1 parent 63816fe commit f97af3b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
11 changes: 6 additions & 5 deletions src/app/router/_internals/NavigationPages.lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ const nav = Object.freeze([
locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.EMAIL_PROFILES}`,
route: 'email-profiles',
},
{
value: AdminSections.SINGLE_SIGN_ON,
locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.SINGLE_SIGN_ON}`,
route: 'single-sign-on',
},
// Note: commented out because of singleSignOn feature is not ready yet
// {
// value: AdminSections.SINGLE_SIGN_ON,
// locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.SINGLE_SIGN_ON}`,
// route: 'single-sign-on',
// },
{
value: AdminSections.IMPORT_CSV,
locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.IMPORT_CSV}`,
Expand Down
43 changes: 20 additions & 23 deletions src/app/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ const Storage = () => import('../../modules/integrations/modules/storage/compone
const OpenedStorage = () => import('../../modules/integrations/modules/storage/components/opened-storage.vue');
const CognitiveProfiles = () => import('../../modules/integrations/modules/cognitive-profiles/components/the-cognitive-profiles.vue');
const EmailProfiles = () => import('../../modules/integrations/modules/email-profiles/components/the-email-profiles.vue');
// Note: commented out because of singleSignOn feature is not ready yet
// const SingleSignOn = () => import('../../modules/integrations/modules/single-sign-on/components/the-single-sign-on.vue');
const SingleSignOn = () => import('../../modules/integrations/modules/single-sign-on/components/the-single-sign-on.vue');
const ImportCsv = () => import('../../modules/integrations/modules/import-csv/components/the-import-csv.vue');
const Triggers = () => import('../../modules/integrations/modules/triggers/components/the-triggers.vue');
const OpenedCognitiveProfile = () => import('../../modules/integrations/modules/cognitive-profiles/components/opened-cognitive-profile.vue');
const OpenedEmailProfile = () => import('../../modules/integrations/modules/email-profiles/components/opened-email-profile.vue');
// Note: commented out because of singleSignOn feature is not ready yet
// const OpenedSingleSignOn = () => import('../../modules/integrations/modules/single-sign-on/components/opened-single-sign-on.vue');
const OpenedSingleSignOn = () => import('../../modules/integrations/modules/single-sign-on/components/opened-single-sign-on.vue');
const OpenedImportCsv = () => import('../../modules/integrations/modules/import-csv/components/opened-import-csv.vue');
const OpenedTrigger = () => import('../../modules/integrations/modules/triggers/components/opened-trigger.vue');
const Changelogs = () => import('../../modules/system/modules/changelogs/components/the-changelogs.vue');
Expand Down Expand Up @@ -602,25 +600,24 @@ const router = createRouter({
component: OpenedEmailProfile,
beforeEnter: checkRouteAccess,
},
// Note: commented out because of singleSignOn feature is not ready yet
// {
// path: '/integrations/single-sign-on',
// name: RouteNames.SINGLE_SIGN_ON,
// component: SingleSignOn,
// beforeEnter: checkRouteAccess,
// },
// {
// path: '/integrations/single-sign-on/new',
// name: `${RouteNames.SINGLE_SIGN_ON}-new`,
// component: OpenedSingleSignOn,
// beforeEnter: checkRouteAccess,
// },
// {
// path: '/integrations/single-sign-on/:id',
// name: `${RouteNames.SINGLE_SIGN_ON}-edit`,
// component: OpenedSingleSignOn,
// beforeEnter: checkRouteAccess,
// },
{
path: '/integrations/single-sign-on',
name: RouteNames.SINGLE_SIGN_ON,
component: SingleSignOn,
beforeEnter: checkRouteAccess,
},
{
path: '/integrations/single-sign-on/new',
name: `${RouteNames.SINGLE_SIGN_ON}-new`,
component: OpenedSingleSignOn,
beforeEnter: checkRouteAccess,
},
{
path: '/integrations/single-sign-on/:id',
name: `${RouteNames.SINGLE_SIGN_ON}-edit`,
component: OpenedSingleSignOn,
beforeEnter: checkRouteAccess,
},
{
path: '/integrations/import-csv',
name: RouteNames.IMPORT_CSV,
Expand Down

0 comments on commit f97af3b

Please sign in to comment.