-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Forwardport] Refactor JS code and added JS component file #17630
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
[Forwardport] Refactor JS code and added JS component file #17630
Conversation
[Forwardport] Refactor JS code and added JS component file
|
Hi @yogeshks. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
| }); | ||
| <script type="text/x-magento-init"> | ||
| { | ||
| '#edit_form': { |
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.
Single quotes are not allowed in JSON configuration
| { | ||
| '#edit_form': { | ||
| "Magento_Ui/catalog/product/edit/attribute": { | ||
| validationUrl: '<?= /* @escapeNotVerified */ $block->getValidationUrl() ?>' |
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.
Single quotes are not allowed in JSON configuration
| { | ||
| "#attributes-edit-form": { | ||
| "Magento_Ui/catalog/product/edit/attribute": { | ||
| validationUrl: '<?= /* @escapeNotVerified */ $block->getValidationUrl() ?>' |
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.
Single quotes are not allowed in JSON configuration
| <script type="text/x-magento-init"> | ||
| { | ||
| '#edit_form': { | ||
| "Magento_Ui/catalog/product/edit/attribute": { |
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.
File catalog/product/edit/attribute.js located in Magento_Catalog module instead of Magento_Ui
| <script type="text/x-magento-init"> | ||
| { | ||
| "#attributes-edit-form": { | ||
| "Magento_Ui/catalog/product/edit/attribute": { |
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.
File catalog/product/edit/attribute.js located in Magento_Catalog module instead of Magento_Ui
[Forwardport] Translated validation error messages
|
Hi @yogeshks , I am closing this PR now due to inactivity. |
|
Hi @yogeshks. Thank you for your contribution. |
Original Pull Request
#17527
Description
Created a new JS component with the callback function.
Replaced
<script/>tag with<script type="text/x-magento-init" />Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist