Skip to content

Commit

Permalink
rm dispatch, new entrypoint not using it
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Jun 15, 2024
1 parent d8dedc3 commit 18c65c1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 129 deletions.
1 change: 0 additions & 1 deletion src/containers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export { default as MyImports } from './my-imports/my-imports';
export { default as NamespaceDetail } from './namespace-detail/namespace-detail';
export { default as MyNamespaces } from './namespace-list/my-namespaces';
export { default as Partners } from './namespace-list/partners';
export { default as Dispatch } from './not-found/dispatch';
export { default as NotFound } from './not-found/not-found';
export { default as RoleCreate } from './role-management/role-create';
export { default as EditRole } from './role-management/role-edit';
Expand Down
121 changes: 0 additions & 121 deletions src/containers/not-found/dispatch.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions src/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ function standaloneMenu() {
condition: canViewAnsibleRemotes,
url: formatPath(Paths.ansibleRemotes),
}),
menuItem(t`API token`, {
url: formatPath(Paths.token),
condition: isLoggedIn,
}),
menuItem(t`Approval`, {
condition: (context) =>
hasPermission(context, 'ansible.modify_ansible_repo_content'),
Expand All @@ -93,6 +89,10 @@ function standaloneMenu() {
condition: isLoggedIn,
alternativeUrls: [altPath(Paths.taskDetail)],
}),
menuItem(t`API token`, {
url: formatPath(Paths.token),
condition: isLoggedIn,
}),
menuItem(t`Signature Keys`, {
url: formatPath(Paths.signatureKeys),
condition: ({ featureFlags, user }) =>
Expand Down
1 change: 0 additions & 1 deletion src/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export const Paths = {
collections: '/collections',
createRole: '/roles/create',
createUser: '/users/create',
dispatch: '/dispatch',
editNamespace: '/my-namespaces/edit/:namespace',
editUser: '/users/:userID/edit',
executionEnvironmentDetailAccess:
Expand Down
2 changes: 0 additions & 2 deletions src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
CollectionDistributions,
CollectionDocs,
CollectionImportLog,
Dispatch,
EditNamespace,
EditRole,
EditUser,
Expand Down Expand Up @@ -254,7 +253,6 @@ export class StandaloneRoutes extends Component<IRoutesProps> {
{ component: MyImports, path: Paths.myImports },
{ component: NamespaceDetail, path: Paths.namespaceDetail },
{ component: Search, path: Paths.collections },
{ component: Dispatch, path: Paths.dispatch },
{ component: MultiSearch, path: Paths.search },
];
}
Expand Down

0 comments on commit 18c65c1

Please sign in to comment.