mirror of
https://github.com/penpot/penpot.git
synced 2026-05-31 20:58:08 +00:00
♻️ Remove the workaround for updating the subscription after subscribing (#6938)
This commit is contained in:
parent
35f3125fff
commit
3df557b370
@ -6,7 +6,6 @@
|
|||||||
[app.main.data.auth :as da]
|
[app.main.data.auth :as da]
|
||||||
[app.main.data.event :as ev]
|
[app.main.data.event :as ev]
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
[app.main.data.profile :as du]
|
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.repo :as rp]
|
[app.main.repo :as rp]
|
||||||
[app.main.router :as rt]
|
[app.main.router :as rt]
|
||||||
@ -319,12 +318,6 @@
|
|||||||
(if (= success-modal-is-trial? "true")
|
(if (= success-modal-is-trial? "true")
|
||||||
(tr "subscription.settings.enterprise-trial")
|
(tr "subscription.settings.enterprise-trial")
|
||||||
(tr "subscription.settings.enterprise")))})
|
(tr "subscription.settings.enterprise")))})
|
||||||
(du/update-profile-props {:subscription
|
|
||||||
(-> subscription
|
|
||||||
(assoc :type (if (= params-subscription "subscribed-to-penpot-unlimited")
|
|
||||||
"unlimited"
|
|
||||||
"enterprise"))
|
|
||||||
(assoc :status "trialing"))})
|
|
||||||
(rt/nav :settings-subscription {} {::rt/replace true})))))
|
(rt/nav :settings-subscription {} {::rt/replace true})))))
|
||||||
|
|
||||||
[:section {:class (stl/css :dashboard-section)}
|
[:section {:class (stl/css :dashboard-section)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user