Skip to content

Commit

Permalink
fixed bug in focus
Browse files Browse the repository at this point in the history
  • Loading branch information
awkay committed Dec 26, 2024
1 parent bf1cbf5 commit d9b029f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions shells/chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"Fulcro is a development framework that uses React and CLJS. This extension adds ability to track Fulcro DB, transactions and network",
"devtools_page":"devtools.html",
"permissions":[
"activeTab",
"tabs"
"activeTab"
],
"host_permissions": [
"file:///*",
Expand Down Expand Up @@ -37,4 +36,4 @@
"matches":["<all_urls>"],
"run_at":"document_idle"}],
"manifest_version":3,
"version":"4.0.4"}
"version":"4.0.5"}
7 changes: 5 additions & 2 deletions src/ui/fulcro/inspect/devtool_api_impl.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
[fulcro.inspect.lib.history :as hist]
[fulcro.inspect.ui.inspector :as inspector]
[fulcro.inspect.ui.multi-inspector :as multi-inspector]
[fulcro.inspect.ui.network :as network]))
[fulcro.inspect.ui.network :as network]
[taoensso.timbre :as log]))

(dres/defmutation app-started [{:fulcro/keys [app]} params]
{::pc/sym `dapi/app-started}
Expand Down Expand Up @@ -63,6 +64,8 @@

(dres/defmutation focus-target [{:fulcro/keys [app]} {::app/keys [id]}]
{::pc/sym `dapi/focus-target}
(log/info "Asked to focus" id)
(when id
(fp/transact! app [(multi-inspector/set-app {::inspector/id [:x id]})]))
(fp/transact! app [(multi-inspector/set-app {::inspector/id [:x id]})]
{:ref multi-inspector/multi-inspector-ident}))
nil)

0 comments on commit d9b029f

Please sign in to comment.