mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +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")))
|
(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
|
(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
|
(defn go-to-buy-nitrate-license
|
||||||
([subscription]
|
([subscription]
|
||||||
@ -78,8 +81,6 @@
|
|||||||
href (dm/str "/control-center/licenses/start?" (u/map->query-string params))]
|
href (dm/str "/control-center/licenses/start?" (u/map->query-string params))]
|
||||||
(st/emit! (rt/nav-raw :href href)))))
|
(st/emit! (rt/nav-raw :href href)))))
|
||||||
|
|
||||||
(def go-to-subscription-url (u/join cf/public-uri "#/settings/subscriptions"))
|
|
||||||
|
|
||||||
(defn is-valid-license?
|
(defn is-valid-license?
|
||||||
[profile]
|
[profile]
|
||||||
(and (contains? cf/flags :nitrate)
|
(and (contains? cf/flags :nitrate)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user