mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 08:01:37 +02:00
Reimplement project/page loading on frontend.
This commit is contained in:
parent
475de58bc2
commit
4f76adcb72
11 changed files with 148 additions and 162 deletions
|
@ -134,10 +134,17 @@
|
|||
(when url (blob/revoke-uri url))
|
||||
own))
|
||||
|
||||
(defn- grid-item-thumbnail-did-remount
|
||||
[oldown own]
|
||||
(when-let [url (::url oldown)]
|
||||
(blob/revoke-uri url))
|
||||
(grid-item-thumbnail-will-mount own))
|
||||
|
||||
(mx/defcs grid-item-thumbnail
|
||||
{:mixins [mx/static]
|
||||
:will-mount grid-item-thumbnail-will-mount
|
||||
:will-unmount grid-item-thumbnail-will-unmount}
|
||||
:will-unmount grid-item-thumbnail-will-unmount
|
||||
:did-remount grid-item-thumbnail-did-remount}
|
||||
[own project]
|
||||
(if-let [url (::url own)]
|
||||
[:div.grid-item-th
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue