mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 10:16:10 +02:00
✨ Improve event registry.
This commit is contained in:
parent
b5b97f7626
commit
926fa483b9
25 changed files with 245 additions and 93 deletions
|
@ -7,6 +7,7 @@
|
|||
(ns app.main.ui.dashboard.files
|
||||
(:require
|
||||
[app.main.data.dashboard :as dd]
|
||||
[app.main.data.events :as ev]
|
||||
[app.main.refs :as refs]
|
||||
[app.main.store :as st]
|
||||
[app.main.ui.dashboard.grid :refer [grid]]
|
||||
|
@ -62,7 +63,8 @@
|
|||
(if (:edition @local)
|
||||
[:& inline-edition {:content (:name project)
|
||||
:on-end (fn [name]
|
||||
(st/emit! (dd/rename-project (assoc project :name name)))
|
||||
(st/emit! (-> (dd/rename-project (assoc project :name name))
|
||||
(with-meta {::ev/origin "project"})))
|
||||
(swap! local assoc :edition false))}]
|
||||
[:div.dashboard-title
|
||||
[:h1 {:on-double-click on-edit}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue