refactor(user dossier): mutualize update/update_brouillon
This commit is contained in:
parent
437ac44143
commit
32e01b13ef
2 changed files with 1 additions and 7 deletions
|
@ -1,6 +0,0 @@
|
|||
- to_shows, to_hides = @dossier.champs.filter(&:conditional?).partition(&:visible?)
|
||||
|
||||
- if to_shows.present?
|
||||
= turbo_stream.show_all(to_shows.map { "##{_1.input_group_id}" }.join(','))
|
||||
- if to_hides.present?
|
||||
= turbo_stream.hide_all(to_hides.map { "##{_1.input_group_id}" }.join(','))
|
Loading…
Add table
Add a link
Reference in a new issue