mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
🐛 Hide import file rows while the import error list is shown (#12121)
When the import modal content moved to import-files-stage* (#9958), the "error list or file rows" if became a when followed by rows that always render. A non-.penpot file yields an analyze error entry with no name, so the modal showed an empty error row below the error list. Render the file rows only when the error list is not shown, as before. Closes #12116 AI-assisted-by: claude-opus-5-5
This commit is contained in:
parent
510173199b
commit
3fe48727ea
@ -602,7 +602,7 @@
|
||||
:class (stl/css :context-notification-error)}
|
||||
(tr "dashboard.import.import-error.disclaimer")])
|
||||
|
||||
(when (or (= :import-error status) (and (= :analyze status) errors?))
|
||||
(if (or (= :import-error status) (and (= :analyze status) errors?))
|
||||
[:div {:class (stl/css :import-error-disclaimer)}
|
||||
[:div (tr "dashboard.import.import-error.message1")]
|
||||
[:ul {:class (stl/css :import-error-list)}
|
||||
@ -624,18 +624,18 @@
|
||||
|
||||
:else
|
||||
(tr "dashboard.import.import-error.unknown-error"))])]))]
|
||||
[:div (tr "dashboard.import.import-error.message2")]])
|
||||
[:div (tr "dashboard.import.import-error.message2")]]
|
||||
|
||||
(for [entry entries]
|
||||
[:> import-entry* {:edition edition
|
||||
:key (dm/str (:uri entry) "/" (:file-id entry))
|
||||
:entry entry
|
||||
:entries entries
|
||||
:is-progress (= :import-progress status)
|
||||
:on-edit on-edit
|
||||
:on-change on-change
|
||||
:on-delete on-delete
|
||||
:can-be-deleted (> (count entries) 1)}])
|
||||
(for [entry entries]
|
||||
[:> import-entry* {:edition edition
|
||||
:key (dm/str (:uri entry) "/" (:file-id entry))
|
||||
:entry entry
|
||||
:entries entries
|
||||
:is-progress (= :import-progress status)
|
||||
:on-edit on-edit
|
||||
:on-change on-change
|
||||
:on-delete on-delete
|
||||
:can-be-deleted (> (count entries) 1)}]))
|
||||
|
||||
(when (some? template)
|
||||
[:> import-entry* {:entry (assoc template :status status)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user