Skip to content

Commit

Permalink
use v3/namespaces api for delete method
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiahWren committed Jul 25, 2023
1 parent d6c3e36 commit 26214ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/hub/namespaces/hooks/useDeleteHubNamespaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { compareStrings, useBulkConfirmation } from '../../../../framework';
import { requestDelete } from '../../../common/crud/Data';
import { HubNamespace } from '../HubNamespace';
import { useHubNamespacesColumns } from './useHubNamespacesColumns';
import { hubAPI, nameKeyFn } from '../../api';
import { pulpAPI, nameKeyFn } from '../../api';

export function useDeleteHubNamespaces(onComplete: (namespaces: HubNamespace[]) => void) {
const { t } = useTranslation();
Expand All @@ -25,7 +25,7 @@ export function useDeleteHubNamespaces(onComplete: (namespaces: HubNamespace[])
onComplete,
alertPrompts: [t('Deleting a namespace will delete all collections in the namespace.')],
actionFn: (namespace: HubNamespace) =>
requestDelete(hubAPI`/_ui/v1/namespaces/${namespace.name}/`),
requestDelete(pulpAPI`/pulp_ansible/namespaces/${namespace.name}`),
});
};
return deleteHubNamespaces;
Expand Down

0 comments on commit 26214ac

Please sign in to comment.