mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 04:19:08 -05:00
🐛 Fix problem when importing in shared libraries
This commit is contained in:
parent
b9ccb4e52c
commit
b68d721b39
3 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
- Fix problems when exporting all artboards [Taiga #2234](https://tree.taiga.io/project/penpot/issue/2234).
|
- Fix problems when exporting all artboards [Taiga #2234](https://tree.taiga.io/project/penpot/issue/2234).
|
||||||
- Fix problems with team management [#1353](https://github.com/penpot/penpot/issues/1353)
|
- Fix problems with team management [#1353](https://github.com/penpot/penpot/issues/1353)
|
||||||
|
- Fix problem when importing in shared libraries [#1362](https://github.com/penpot/penpot/issues/1362)
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
|
@ -205,6 +205,7 @@
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(fn []
|
(fn []
|
||||||
(st/emit! (dd/fetch-files {:project-id project-id})
|
(st/emit! (dd/fetch-files {:project-id project-id})
|
||||||
|
(dd/fetch-shared-files)
|
||||||
(dd/clear-selected-files))))
|
(dd/clear-selected-files))))
|
||||||
|
|
||||||
import-files (use-import-file project-id on-finish-import)
|
import-files (use-import-file project-id on-finish-import)
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
(ns app.main.ui.dashboard.libraries
|
(ns app.main.ui.dashboard.libraries
|
||||||
(:require
|
(:require
|
||||||
|
[app.common.data :as d]
|
||||||
[app.main.data.dashboard :as dd]
|
[app.main.data.dashboard :as dd]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
|
@ -17,6 +18,8 @@
|
||||||
(mf/defc libraries-page
|
(mf/defc libraries-page
|
||||||
[{:keys [team] :as props}]
|
[{:keys [team] :as props}]
|
||||||
(let [files-map (mf/deref refs/dashboard-shared-files)
|
(let [files-map (mf/deref refs/dashboard-shared-files)
|
||||||
|
projects (mf/deref refs/dashboard-projects)
|
||||||
|
default-project (->> projects vals (d/seek :is-default))
|
||||||
files (->> (vals files-map)
|
files (->> (vals files-map)
|
||||||
(sort-by :modified-at)
|
(sort-by :modified-at)
|
||||||
(reverse))]
|
(reverse))]
|
||||||
|
@ -38,5 +41,6 @@
|
||||||
[:div.dashboard-title
|
[:div.dashboard-title
|
||||||
[:h1 (tr "dashboard.libraries-title")]]]
|
[:h1 (tr "dashboard.libraries-title")]]]
|
||||||
[:section.dashboard-container
|
[:section.dashboard-container
|
||||||
[:& grid {:files files}]]]))
|
[:& grid {:files files
|
||||||
|
:project default-project}]]]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue