Fixed tags block not being hidden on encountering error

This commit is contained in:
KoloMl 2024-12-15 00:28:39 +04:00
parent 1853c8984f
commit c0db5d0ef7

View file

@ -1,4 +1,5 @@
- form_class = if @changeset.action, do: "", else: "hidden" - form_class = if @changeset.action, do: "", else: "hidden"
- tags_class = if @changeset.action, do: "hidden", else: ""
- tags = display_order(@image.tags) - tags = display_order(@image.tags)
- tag_input = Enum.map_join(tags, ", ", & &1.name) - tag_input = Enum.map_join(tags, ", ", & &1.name)
@ -56,7 +57,7 @@
p p
' You can't edit the tags on this image. ' You can't edit the tags on this image.
.block.tagsauce .block.tagsauce class=tags_class
.block__header.flex .block__header.flex
span.block__header__title span.block__header__title
i.fas.fa-tag> i.fas.fa-tag>