Skip to content

Commit

Permalink
job template details delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagodread committed Apr 19, 2021
1 parent 8375141 commit 8135ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions awx/ui_next/src/components/DeleteButton/DeleteButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function DeleteButton({
</Tooltip>
) : (
<Button
ouiaId={ouiaId}
isLoading={isLoading}
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
variant={variant || 'secondary'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ function JobTemplateDetail({ i18n, template }) {
{summary_fields.user_capabilities &&
summary_fields.user_capabilities.delete && (
<DeleteButton
ouiaId="job-template-detail-delete-button"
name={name}
modalTitle={i18n._(t`Delete Job Template`)}
onConfirm={deleteJobTemplate}
Expand Down

0 comments on commit 8135ac4

Please sign in to comment.