🐛 Fix create assets group modal

This commit is contained in:
Eva 2024-01-22 11:06:32 +01:00
parent cedcc15c9d
commit b66032f2cc

View file

@ -105,8 +105,8 @@
(mf/deps last-path)
(constantly {:asset-name last-path}))
form (fm/use-form :spec ::name-group-form
:validators [(fm/validate-not-empty :name (tr "auth.name.not-all-space"))
(fm/validate-length :name fm/max-length-allowed (tr "auth.name.too-long"))]
:validators [(fm/validate-not-empty :asset-name (tr "auth.name.not-all-space"))
(fm/validate-length :asset-name fm/max-length-allowed (tr "auth.name.too-long"))]
:initial initial)
create? (empty? path)
@ -122,6 +122,7 @@
(accept asset-name)
(accept path asset-name))
(modal/hide!))))]
[:div {:class (stl/css :modal-overlay)}
[:div {:class (stl/css :modal-container)}
[:div {:class (stl/css :modal-header)}