Improve component renaming process on workspace

This commit is contained in:
Andrey Antukh 2023-05-24 19:08:53 +02:00 committed by Alejandro Alonso
parent 0ea07fbe01
commit bd834ba840
6 changed files with 139 additions and 95 deletions

View file

@ -104,9 +104,12 @@
(def workspace-drawing
(l/derived :workspace-drawing st/state))
;; FIXME: define it as function, because in some situations this
;; current check is not enought for true readiness
(def workspace-ready?
(l/derived (fn [state]
(and (:workspace-ready? state)
(:workspace-data state)
(:current-file-id state)
(:current-project-id state)))
st/state))