mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
📎 Revert show version notes when navigate from cc (#8591)
This commit is contained in:
parent
5c989d00d0
commit
58d7e1de18
@ -10,7 +10,6 @@
|
|||||||
[app.common.uuid :as uuid]
|
[app.common.uuid :as uuid]
|
||||||
[app.config :as cf]
|
[app.config :as cf]
|
||||||
[app.main.data.common :as dcm]
|
[app.main.data.common :as dcm]
|
||||||
[app.main.data.modal :as modal]
|
|
||||||
[app.main.data.team :as dtm]
|
[app.main.data.team :as dtm]
|
||||||
[app.main.errors :as errors]
|
[app.main.errors :as errors]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
@ -154,8 +153,6 @@
|
|||||||
props (get profile :props)
|
props (get profile :props)
|
||||||
section (get data :name)
|
section (get data :name)
|
||||||
team (mf/deref refs/team)
|
team (mf/deref refs/team)
|
||||||
params-release-notes
|
|
||||||
(-> route :params :query :release-notes)
|
|
||||||
|
|
||||||
|
|
||||||
show-question-modal?
|
show-question-modal?
|
||||||
@ -182,13 +179,6 @@
|
|||||||
(not= (:release-notes-viewed props) (:main cf/version))
|
(not= (:release-notes-viewed props) (:main cf/version))
|
||||||
(not= "0.0" (:main cf/version)))]
|
(not= "0.0" (:main cf/version)))]
|
||||||
|
|
||||||
(mf/with-effect [section params-release-notes]
|
|
||||||
(when (= params-release-notes "show")
|
|
||||||
(let [query-params (-> route :params :query)
|
|
||||||
updated-params (dissoc query-params :release-notes)]
|
|
||||||
(st/emit! (modal/show {:type :release-notes :version (:main cf/version)}))
|
|
||||||
(st/emit! (rt/nav section updated-params {::rt/replace true})))))
|
|
||||||
|
|
||||||
[:& (mf/provider ctx/current-route) {:value route}
|
[:& (mf/provider ctx/current-route) {:value route}
|
||||||
(case section
|
(case section
|
||||||
(:auth-login
|
(:auth-login
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user