Merge commit
This commit is contained in:
parent
795d8a5875
commit
6836ca8573
|
@ -76,7 +76,16 @@ export const createLicensingStore = () => {
|
||||||
await actions.setQuotaUsage()
|
await actions.setQuotaUsage()
|
||||||
},
|
},
|
||||||
setNavigation: () => {
|
setNavigation: () => {
|
||||||
const upgradeUrl = `${get(admin).accountPortalUrl}/portal/upgrade`
|
//"/builder/portal/account/upgrade"
|
||||||
|
const adminStore = get(admin)
|
||||||
|
const authStore = get(auth)
|
||||||
|
|
||||||
|
//Add cloud check here too???
|
||||||
|
|
||||||
|
const upgradeUrl = authStore?.user?.accountPortalAccess
|
||||||
|
? `${adminStore.accountPortalUrl}/portal/upgrade`
|
||||||
|
: "/builder/portal/account/upgrade"
|
||||||
|
|
||||||
const goToUpgradePage = () => {
|
const goToUpgradePage = () => {
|
||||||
window.location.href = upgradeUrl
|
window.location.href = upgradeUrl
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue