chore(turbo): morph all the things

This commit is contained in:
Paul Chavard 2023-01-16 21:31:07 +01:00
parent af6d167516
commit 5b9e534b3f
21 changed files with 81 additions and 106 deletions

View file

@ -1,3 +1,6 @@
- if @dossier.present?
= turbo_stream.replace_all '.invite-user-action', partial: 'invites/dropdown', locals: { dossier: @dossier }
= turbo_stream.focus_all '.invite-user-action > button'
- if @dossier.invites.empty?
= turbo_stream.focus 'invite_email'
- else
= turbo_stream.focus_all '#invites-form ul a:first-child'