0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🐛 Fix incorrect lense on dashboard selected files.

This commit is contained in:
Andrey Antukh 2021-06-17 07:58:51 +02:00 committed by Andrés Moya
parent ac37f903d4
commit 23b315c58f
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@
(def dashboard-selected-files (def dashboard-selected-files
(l/derived (fn [state] (l/derived (fn [state]
(let [get-file #(get-in state [:dashboard-files %]) (let [get-file #(get-in state [:dashboard-files %])
sim-file #(select-keys % [:id :name :project-id]) sim-file #(select-keys % [:id :name :project-id :is-shared])
selected (get-in state [:dashboard-local :selected-files]) selected (get-in state [:dashboard-local :selected-files])
xform (comp (map get-file) xform (comp (map get-file)
(map sim-file))] (map sim-file))]

View file

@ -97,7 +97,7 @@
:title (tr "modals.delete-file-multi-confirm.title" file-count) :title (tr "modals.delete-file-multi-confirm.title" file-count)
:message (tr "modals.delete-file-multi-confirm.message" file-count) :message (tr "modals.delete-file-multi-confirm.message" file-count)
:accept-label (tr "modals.delete-file-multi-confirm.accept" file-count) :accept-label (tr "modals.delete-file-multi-confirm.accept" file-count)
:on-accept delete-fn})) :on-accept delete-fn}))
(st/emit! (modal/show (st/emit! (modal/show
{:type :confirm {:type :confirm
:title (tr "modals.delete-file-confirm.title") :title (tr "modals.delete-file-confirm.title")