mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
✨ Add callback to nitrate billing url
This commit is contained in:
parent
de577a803c
commit
c63b9583a2
@ -65,9 +65,12 @@
|
||||
[]
|
||||
(st/emit! (rt/nav-raw :href "/control-center/?action=create-org")))
|
||||
|
||||
(def go-to-subscription-url (u/join cf/public-uri "#/settings/subscriptions"))
|
||||
|
||||
(defn go-to-nitrate-billing
|
||||
[]
|
||||
(st/emit! (rt/nav-raw :href "/control-center/licenses/billing")))
|
||||
(let [href (dm/str "/control-center/licenses/billing?callback=" (js/encodeURIComponent go-to-subscription-url))]
|
||||
(st/emit! (rt/nav-raw :href href))))
|
||||
|
||||
(defn go-to-buy-nitrate-license
|
||||
([subscription]
|
||||
@ -78,8 +81,6 @@
|
||||
href (dm/str "/control-center/licenses/start?" (u/map->query-string params))]
|
||||
(st/emit! (rt/nav-raw :href href)))))
|
||||
|
||||
(def go-to-subscription-url (u/join cf/public-uri "#/settings/subscriptions"))
|
||||
|
||||
(defn is-valid-license?
|
||||
[profile]
|
||||
(and (contains? cf/flags :nitrate)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user