2022-11-23 18:40:49 +01:00
|
|
|
- if @dossier.present?
|
2022-12-28 16:47:52 +01:00
|
|
|
= turbo_stream.replace_all '.invite-user-action', partial: 'invites/dropdown', locals: { dossier: @dossier, morphing: true }
|
2023-01-16 21:31:07 +01:00
|
|
|
- if @dossier.invites.empty?
|
2022-12-28 16:47:52 +01:00
|
|
|
= turbo_stream.focus 'invite-list'
|
2023-01-16 21:31:07 +01:00
|
|
|
- else
|
2022-12-28 16:47:52 +01:00
|
|
|
= turbo_stream.focus 'invite_email'
|