mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
disables delete button on project details page
This commit is contained in:
parent
03265c05ca
commit
34fe255336
@ -219,7 +219,7 @@ function ProjectDetail({ project }) {
|
||||
name={name}
|
||||
modalTitle={t`Delete Project`}
|
||||
onConfirm={deleteProject}
|
||||
isDisabled={isLoading}
|
||||
isDisabled={isLoading || job?.status === 'running'}
|
||||
deleteDetailsRequests={deleteDetailsRequests}
|
||||
deleteMessage={t`This project is currently being used by other resources. Are you sure you want to delete it?`}
|
||||
>
|
||||
@ -227,7 +227,6 @@ function ProjectDetail({ project }) {
|
||||
</DeleteButton>
|
||||
)}
|
||||
</CardActionsRow>
|
||||
{/* Update delete modal to show dependencies https://github.com/ansible/awx/issues/5546 */}
|
||||
{error && (
|
||||
<AlertModal
|
||||
isOpen={error}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user