-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #37619 - Add ouia-ids for remediation wizard #574
Changes from 3 commits
846db06
720e495
411ab70
e249183
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
{ | ||
"plugins": ["@theforeman/foreman"], | ||
"extends": ["plugin:@theforeman/foreman/core", "plugin:@theforeman/foreman/plugins"] | ||
} | ||
"plugins": [ | ||
"@theforeman/foreman", | ||
"@theforeman/rules" | ||
], | ||
"extends": [ | ||
"plugin:@theforeman/foreman/core", | ||
"plugin:@theforeman/foreman/plugins" | ||
], | ||
"rules":{ | ||
"@theforeman/rules/require-ouiaid": ["error"] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ const ConfirmModal = props => { | |
|
||
const actions = [ | ||
<Button | ||
ouiaId={`oscap-conf-modal-${props.record.id}-confirm`} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed. Although, anything that is fixed here and is not related to the wizard should be removed, since those are leftovers from OVAL additions. |
||
key="confirm" | ||
variant="primary" | ||
onClick={() => props.onConfirm(callMutation, props.record.id)} | ||
|
@@ -19,6 +20,7 @@ const ConfirmModal = props => { | |
{__('Confirm')} | ||
</Button>, | ||
<Button | ||
ouiaId={`oscap-conf-modal-${props.record.id}-cancel`} | ||
key="cancel" | ||
variant="link" | ||
onClick={event => props.onClose()} | ||
|
@@ -34,6 +36,7 @@ const ConfirmModal = props => { | |
|
||
return ( | ||
<Modal | ||
ouiaId={`oscap-conf-modal-${props.record.id}`} | ||
variant={ModalVariant.medium} | ||
title={props.title} | ||
isOpen={props.isOpen} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This already runs as part of
foreman_plugin_js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should add it there, but thats a different pr 🙃