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

6 lines
269 B
Text

- if @dossier.present?
= turbo_stream.replace_all '.invite-user-action', partial: 'invites/dropdown', locals: { dossier: @dossier, morphing: true }
- if @dossier.invites.empty?
= turbo_stream.focus 'invite-list'
- else
= turbo_stream.focus 'invite_email'