-
Notifications
You must be signed in to change notification settings - Fork 356
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
Log Collection Form conversion from Angular to React #8591
Log Collection Form conversion from Angular to React #8591
Conversation
ba3bfb5
to
3c32957
Compare
fb05d54
to
fda6311
Compare
Checked commit jeffbonson@fda6311 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint app/views/ops/_log_collection.html.haml |
describe('Diagnostics Collect Log form component', () => { | ||
const options = { | ||
'': '<No Depot>', | ||
FileDepotFtp: 'FTP', |
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.
were these hardcoded previously? I thought we offered them via OPTIONS
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.
Gah sorry - this is the spec
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.
LGTM - would also like @manageiq/committers-ui to review
const createSchema = (initialData, options) => { | ||
const fields = [{ | ||
component: componentTypes.SUB_FORM, | ||
title: __(`Editing Log Depot Settings for ${initialData.logType}: ${initialData.displayName}`), |
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.
@jeffibm As per ManageIQ/manageiq#22309 (comment) this should probably be something like
title: __(`Editing Log Depot Settings for ${initialData.logType}: ${initialData.displayName}`), | |
title: sprintf(__(`Editing Log Depot Settings for %s: %s`), initialData.logType, initialData.displayName), |
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 change is handled in a different PR - #8605
Issue - #7603 for
ops/_log_collection.html.haml
Before
After