Skip to content

Commit

Permalink
fixes after cr
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Mar 10, 2023
1 parent 89cf887 commit 7dac0bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// @deprecated, will be removed in 5.0
ibexa.addConfig('helpers.formError', {
formatLine: (...args) => {
console.warn('helpers.formError.formatLine method is deprecated and will be removed in 5.0');
console.warn(
'helpers.formError.formatLine method is deprecated and will be removed in 5.0, please use helpers.formValidation.formatErrorLine instead.',
);

return ibexa.helpers.formValidation.formatErrorLine(...args);
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(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>
<use xlink:href="${ibexa.helpers.icon.getIconPath('warning-triangle')}"></use>
</svg>`;
const container = document.createElement('em');
const errorMessageNode = document.createTextNode(errorMessage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
is_selector: attr.is_selector|default(false),
is_dynamic: attr.is_dynamic|default(false),
has_select_all_toggler: attr.has_select_all_toggler|default(false),
placeholder: attr.placeholder|default(),
} %}
{% endif %}
{%- endblock choice_widget -%}

0 comments on commit 7dac0bb

Please sign in to comment.