mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 19:36:41 +02:00
✨ Detach typographies when deleted in the file library
This commit is contained in:
parent
dac7a6497f
commit
723cb3b546
3 changed files with 7 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
- Process numeric input changes only if the value actually changed.
|
- Process numeric input changes only if the value actually changed.
|
||||||
- Remove unnecesary redirect from history when user goes to workspace from dashboard [Taiga #1820](https://tree.taiga.io/project/penpot/issue/1820).
|
- Remove unnecesary redirect from history when user goes to workspace from dashboard [Taiga #1820](https://tree.taiga.io/project/penpot/issue/1820).
|
||||||
|
- Detach shapes from deleted assets [Taiga #1850](https://tree.taiga.io/project/penpot/issue/1850).
|
||||||
- Fix tooltip position on view application [Taiga #1819](https://tree.taiga.io/project/penpot/issue/1819).
|
- Fix tooltip position on view application [Taiga #1819](https://tree.taiga.io/project/penpot/issue/1819).
|
||||||
- Fix dashboard navigation on moving file to other team [Taiga #1817](https://tree.taiga.io/project/penpot/issue/1817).
|
- Fix dashboard navigation on moving file to other team [Taiga #1817](https://tree.taiga.io/project/penpot/issue/1817).
|
||||||
- Fix workspace header presence styles and invalid link [Taiga #1813](https://tree.taiga.io/project/penpot/issue/1813).
|
- Fix workspace header presence styles and invalid link [Taiga #1813](https://tree.taiga.io/project/penpot/issue/1813).
|
||||||
|
|
|
@ -499,7 +499,8 @@
|
||||||
update-node (fn [node]
|
update-node (fn [node]
|
||||||
(if-let [typography (get typographies (:typography-ref-id node))]
|
(if-let [typography (get typographies (:typography-ref-id node))]
|
||||||
(merge node (d/without-keys typography [:name :id]))
|
(merge node (d/without-keys typography [:name :id]))
|
||||||
node))]
|
(dissoc node :typography-ref-id
|
||||||
|
:typography-ref-file)))]
|
||||||
(generate-sync-text-shape shape container update-node)))
|
(generate-sync-text-shape shape container update-node)))
|
||||||
|
|
||||||
(defn- get-assets
|
(defn- get-assets
|
||||||
|
|
|
@ -1252,7 +1252,10 @@
|
||||||
(fn []
|
(fn []
|
||||||
(if (or multi-typographies? multi-assets?)
|
(if (or multi-typographies? multi-assets?)
|
||||||
(on-assets-delete)
|
(on-assets-delete)
|
||||||
(st/emit! (dwl/delete-typography (:id @state))))))
|
(st/emit! (dwu/start-undo-transaction)
|
||||||
|
(dwl/delete-typography (:id @state))
|
||||||
|
(dwl/sync-file file-id file-id)
|
||||||
|
(dwu/commit-undo-transaction)))))
|
||||||
|
|
||||||
editting-id (or (:rename-typography local) (:edit-typography local))]
|
editting-id (or (:rename-typography local) (:edit-typography local))]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue