mirror of
https://github.com/penpot/penpot.git
synced 2025-06-25 13:07:01 +02:00
🎉 Add lazy loading of thumbnails on dashboard
This commit is contained in:
parent
8fec5af55e
commit
748499a26f
5 changed files with 250 additions and 165 deletions
|
@ -565,6 +565,8 @@
|
|||
(s/keys :req-un [::profile-id ::file-id ::revn ::data ::props]))
|
||||
|
||||
(sv/defmethod ::upsert-file-thumbnail
|
||||
"Creates or updates the file thumbnail. Mainly used for paint the
|
||||
grid thumbnals."
|
||||
[{:keys [pool] :as cfg} {:keys [profile-id file-id revn data props]}]
|
||||
(db/with-atomic [conn pool]
|
||||
(files/check-edition-permissions! conn profile-id file-id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue