demarches-normaliennes/app/views/invites/destroy.turbo_stream.haml

7 lines
276 B
Text
Raw Normal View History

- if @dossier.present?
= turbo_stream.replace_all '.invite-user-action', partial: 'invites/dropdown', locals: { dossier: @dossier }
2023-01-16 21:31:07 +01:00
- if @dossier.invites.empty?
= turbo_stream.focus 'invite_email'
- else
= turbo_stream.focus_all '#invites-form ul a:first-child'