Skip to content

Commit

Permalink
Merge pull request #132 from RoleModel/rack-31-compatibility
Browse files Browse the repository at this point in the history
Make modal compatible with Rack 3.1
  • Loading branch information
reedrolemodel authored Nov 6, 2024
2 parents 1c1eb20 + 32f541b commit 5451f2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ html
= turbo_frame_tag 'panel' do
.panel.flex.items-center.justify-center(
data-testid='panel'
class=class_names('panel--active' => response.message == 'Unprocessable Entity')
class=class_names('panel--active' => response.message == 'Unprocessable Content' || response.message == 'Unprocessable Entity')
data-controller="toggle"
data-toggle-perform-on-connect-value=(response.message == 'OK')
data-toggle-active-class="panel--active"
Expand Down

0 comments on commit 5451f2a

Please sign in to comment.