-
Notifications
You must be signed in to change notification settings - Fork 16
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
IBX-5255: Move required validation method to helpers #728
Conversation
87fff05
to
e46d7b1
Compare
1da42f1
to
513e825
Compare
(function (global, doc, ibexa, Translator) { | ||
const formatErrorLine = (errorMessage) => { | ||
const errorIcon = `<svg class="ibexa-icon ibexa-icon--small ibexa-form-error__icon"> | ||
<use xlink:href="${window.ibexa.helpers.icon.getIconPath('warning-triangle')}"></use> |
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.
<use xlink:href="${window.ibexa.helpers.icon.getIconPath('warning-triangle')}"></use> | |
<use xlink:href="${ibexa.helpers.icon.getIconPath('warning-triangle')}"></use> |
|
||
return container; | ||
}; | ||
const checkIsEmpty = (field) => { |
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.
I dont like this func name
ibexa.addConfig('helpers.formError', { | ||
formatLine, | ||
formatLine: (...args) => { | ||
console.warn('helpers.formError.formatLine method is deprecated and will be removed in 5.0'); |
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.
please use ... instead
- when deprecating things you should show how to fix it.
02ecef9
to
7dac0bb
Compare
d1811e4
to
adf77cc
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Checklist:
$ composer fix-cs
)