Skip to content

Commit

Permalink
DeleteRemoteModal
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Nov 17, 2024
1 parent 5c134d5 commit 767c04e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/actions/ansible-remote-delete.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { msg, t } from '@lingui/macro';
import React from 'react';
import { AnsibleRemoteAPI } from 'src/api';
import { DeleteAnsibleRemoteModal } from 'src/components';
import { DeleteRemoteModal } from 'src/components';
import {
handleHttpError,
parsePulpIDFromURL,
Expand All @@ -14,7 +14,7 @@ export const ansibleRemoteDeleteAction = Action({
title: msg`Delete`,
modal: ({ addAlert, listQuery, setState, state }) =>
state.deleteModalOpen ? (
<DeleteAnsibleRemoteModal
<DeleteRemoteModal
closeAction={() => setState({ deleteModalOpen: null })}
deleteAction={() =>
deleteRemote(state.deleteModalOpen, { addAlert, setState, listQuery })
Expand Down
4 changes: 2 additions & 2 deletions src/actions/file-remote-delete.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { msg, t } from '@lingui/macro';
import React from 'react';
import { FileRemoteAPI } from 'src/api';
import { DeleteAnsibleRemoteModal } from 'src/components';
import { DeleteRemoteModal } from 'src/components';
import {
handleHttpError,
parsePulpIDFromURL,
Expand All @@ -14,7 +14,7 @@ export const fileRemoteDeleteAction = Action({
title: msg`Delete`,
modal: ({ addAlert, listQuery, setState, state }) =>
state.deleteModalOpen ? (
<DeleteAnsibleRemoteModal
<DeleteRemoteModal
closeAction={() => setState({ deleteModalOpen: null })}
deleteAction={() =>
deleteRemote(state.deleteModalOpen, { addAlert, setState, listQuery })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface IProps {
name: string;
}

export const DeleteAnsibleRemoteModal = ({
export const DeleteRemoteModal = ({
closeAction,
deleteAction,
name,
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export { CopyURL } from './copy-url';
export { DarkmodeSwitcher } from './darkmode-switcher';
export { DataForm } from './data-form';
export { DateComponent } from './date-component';
export { DeleteAnsibleRemoteModal } from './delete-ansible-remote-modal';
export { DeleteAnsibleRepositoryModal } from './delete-ansible-repository-modal';
export { DeleteCollectionModal } from './delete-collection-modal';
export { DeleteExecutionEnvironmentModal } from './delete-execution-environment-modal';
export { DeleteGroupModal } from './delete-group-modal';
export { DeleteModal } from './delete-modal';
export { DeleteRemoteModal } from './delete-remote-modal';
export { DeleteUserModal } from './delete-user-modal';
export { DeprecatedTag } from './deprecated-tag';
export { DetailList } from './detail-list';
Expand Down

0 comments on commit 767c04e

Please sign in to comment.