Skip to content

Commit

Permalink
MMT-3899: Temporarily removing Permissions Pages (#1299)
Browse files Browse the repository at this point in the history
* MMT-3899: Temporarily removing Permissions Pages

* MMT-3899: Tests and lint
  • Loading branch information
mandyparson authored Sep 17, 2024
1 parent ab76ebf commit 81eff52
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 19 deletions.
30 changes: 23 additions & 7 deletions static/src/js/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import MetadataFormPage from '@/js/pages/MetadataFormPage/MetadataFormPage'
import OrderOptionFormPage from '@/js/pages/OrderOptionFormPage/OrderOptionFormPage'
import OrderOptionListPage from '@/js/pages/OrderOptionListPage/OrderOptionListPage'
import OrderOptionPage from '@/js/pages/OrderOptionPage/OrderOptionPage'
import PermissionListPage from '@/js/pages/PermissionListPage/PermissionListPage'
import PermissionPage from '@/js/pages/PermissionPage/PermissionPage'
// Import PermissionListPage from '@/js/pages/PermissionListPage/PermissionListPage'
// Import PermissionPage from '@/js/pages/PermissionPage/PermissionPage'
import ProviderPermissionsPage from '@/js/pages/ProviderPermissionsPage/ProviderPermissionsPage'
import ProvidersPage from '@/js/pages/ProvidersPage/ProvidersPage'
import RevisionListPage from '@/js/pages/RevisionListPage/RevisionListPage'
Expand All @@ -31,7 +31,7 @@ import ErrorPageNotFound from '@/js/components/ErrorPageNotFound/ErrorPageNotFou
import Layout from '@/js/components/Layout/Layout'
import LayoutUnauthenticated from '@/js/components/LayoutUnauthenticated/LayoutUnauthenticated'
import Notifications from '@/js/components/Notifications/Notifications'
import PermissionFormPage from '@/js/pages/PermissionFormPage/PermissionFormPage'
// Import PermissionFormPage from '@/js/pages/PermissionFormPage/PermissionFormPage'
import PublishPreview from '@/js/components/PublishPreview/PublishPreview'
import TemplateForm from '@/js/components/TemplateForm/TemplateForm'
import TemplateList from '@/js/components/TemplateList/TemplateList'
Expand Down Expand Up @@ -140,20 +140,36 @@ export const App = () => {
},
{
path: '/permissions',
element: <PermissionListPage />
element: <Navigate replace to="/404" />
},
// {
// path: '/permissions',
// element: <PermissionListPage />
// },
{
path: '/permissions/new',
element: <PermissionFormPage />
element: <Navigate replace to="/404" />
},
// {
// path: '/permissions/new',
// element: <PermissionFormPage />
// },
{
path: '/permissions/:conceptId/edit',
element: <PermissionFormPage />
element: <Navigate replace to="/404" />
},
// {
// path: '/permissions/:conceptId/edit',
// element: <PermissionFormPage />
// },
{
path: '/permissions/:conceptId',
element: <PermissionPage />
element: <Navigate replace to="/404" />
},
// {
// path: '/permissions/:conceptId',
// element: <PermissionPage />
// },
{
path: '/order-options',
element: <OrderOptionListPage />
Expand Down
8 changes: 4 additions & 4 deletions static/src/js/components/Layout/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ const Layout = ({ className, displayNav }) => {
{
to: '/templates/collections',
title: 'Templates'
},
{
to: '/permissions',
title: 'Permissions'
}
// {
// to: '/permissions',
// title: 'Permissions'
// }
]
},
{
Expand Down
16 changes: 8 additions & 8 deletions static/src/js/components/Layout/__tests__/Layout.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ describe('Layout component', () => {
{
to: '/templates/collections',
title: 'Templates'
},
{
title: 'Permissions',
to: '/permissions'
}
// {
// title: 'Permissions',
// to: '/permissions'
// }
]
},
{
Expand Down Expand Up @@ -215,11 +215,11 @@ describe('Layout component', () => {
{
to: '/templates/collections',
title: 'Templates'
},
{
title: 'Permissions',
to: '/permissions'
}
// {
// title: 'Permissions',
// to: '/permissions'
// }
]
},
{
Expand Down

0 comments on commit 81eff52

Please sign in to comment.