mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Fixes logo icon navigation in viewer
This commit is contained in:
parent
5336bbbe65
commit
7846682223
3 changed files with 13 additions and 8 deletions
|
@ -24,6 +24,7 @@
|
||||||
- Fix 404 when acces shared link [#615](https://github.com/penpot/penpot/issues/615)
|
- Fix 404 when acces shared link [#615](https://github.com/penpot/penpot/issues/615)
|
||||||
- Fix show correct error when google auth is disabled
|
- Fix show correct error when google auth is disabled
|
||||||
- Fix apply a color to a text selection from color palette was not working
|
- Fix apply a color to a text selection from color palette was not working
|
||||||
|
- Fix logo icon in viewer should go to dashboard
|
||||||
|
|
||||||
### Community contributions by (Thank you! :heart:)
|
### Community contributions by (Thank you! :heart:)
|
||||||
|
|
||||||
|
|
|
@ -417,3 +417,12 @@
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(assoc-in state [:viewer-local :hover] (when hover? id)))))
|
(assoc-in state [:viewer-local :hover] (when hover? id)))))
|
||||||
|
|
||||||
|
|
||||||
|
(defn go-to-dashboard
|
||||||
|
([] (go-to-dashboard nil))
|
||||||
|
([{:keys [team-id]}]
|
||||||
|
(ptk/reify ::go-to-dashboard
|
||||||
|
ptk/WatchEvent
|
||||||
|
(watch [_ state stream]
|
||||||
|
(let [team-id (or team-id (get-in state [:viewer-data :project :team-id]))]
|
||||||
|
(rx/of (rt/nav :dashboard-projects {:team-id team-id})))))))
|
||||||
|
|
|
@ -196,14 +196,9 @@
|
||||||
|
|
||||||
on-goback
|
on-goback
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps project-id file-id page-id anonymous?)
|
(mf/deps project)
|
||||||
(fn []
|
(st/emitf (dv/go-to-dashboard project)))
|
||||||
(if anonymous?
|
|
||||||
(st/emit! (rt/nav :login))
|
|
||||||
(st/emit! (rt/nav :workspace
|
|
||||||
{:project-id project-id
|
|
||||||
:file-id file-id}
|
|
||||||
{:page-id page-id})))))
|
|
||||||
on-edit
|
on-edit
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps project-id file-id page-id)
|
(mf/deps project-id file-id page-id)
|
||||||
|
|
Loading…
Reference in a new issue