mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #9950 from tiagodread/ouia-ids
[Testability] Job template details delete button Resolves #9510 Reviewed-by: Jake McDermott <yo@jakemcdermott.me>
This commit is contained in:
commit
ce588a6af5
@ -84,6 +84,7 @@ function DeleteButton({
|
||||
</Tooltip>
|
||||
) : (
|
||||
<Button
|
||||
ouiaId={ouiaId}
|
||||
isLoading={isLoading}
|
||||
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
||||
variant={variant || 'secondary'}
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user