Skip to content

Commit

Permalink
Merge pull request #9950 from tiagodread/ouia-ids
Browse files Browse the repository at this point in the history
[Testability] Job template details delete button

Resolves #9510

Reviewed-by: Jake McDermott <yo@jakemcdermott.me>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Apr 20, 2021
2 parents 7223ab4 + 8135ac4 commit ce588a6
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 @@ -403,6 +403,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 ce588a6

Please sign in to comment.