Skip to content

Commit

Permalink
IBX-8829: [Richtext] Distraction free mode button should be disabled …
Browse files Browse the repository at this point in the history
…when richtext field isn't translatable (#1343)
  • Loading branch information
lucasOsti authored Sep 23, 2024
1 parent 9df3372 commit db4475a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@
{{- form_label(form) -}}
</div>
<div class="ibexa-field-edit__distraction-free-mode-btns">
<button type="button" class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--small ibexa-field-edit__distraction-free-mode-control-btn ibexa-field-edit__distraction-free-mode-control-btn--enable">
<button {{ (fieldtype_is_not_translatable or disabled) ? 'disabled' }} type="button" class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--small ibexa-field-edit__distraction-free-mode-control-btn ibexa-field-edit__distraction-free-mode-control-btn--enable">
<svg class="ibexa-icon ibexa-icon--tiny-small">
<use xlink:href="{{ ibexa_icon_path('focus') }}"></use>
</svg>
Expand All @@ -543,7 +543,7 @@
{{ 'distraction_free_mode.enable.label'|trans|desc('Distraction free mode') }}
</span>
</button>
<button type="button" class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--small ibexa-field-edit__distraction-free-mode-control-btn ibexa-field-edit__distraction-free-mode-control-btn--disable">
<button {{ (fieldtype_is_not_translatable or disabled) ? 'disabled' }} type="button" class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--small ibexa-field-edit__distraction-free-mode-control-btn ibexa-field-edit__distraction-free-mode-control-btn--disable">
<svg class="ibexa-icon ibexa-icon--tiny-small">
<use xlink:href="{{ ibexa_icon_path('un-focus') }}"></use>
</svg>
Expand Down

0 comments on commit db4475a

Please sign in to comment.