Refactor -> Avouid explicit usage of pricing url
This commit is contained in:
parent
3e62cac3a6
commit
17e2a4d7e4
|
@ -314,10 +314,11 @@
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<AppLimitModal bind:this={appLimitModal} />
|
<AppLimitModal bind:this={appLimitModal} />
|
||||||
<AccountLockedModal bind:this={accountLockedModal} onConfirm={() =>
|
<AccountLockedModal
|
||||||
isOwner
|
bind:this={accountLockedModal}
|
||||||
? $licensing.goToUpgradePage()
|
onConfirm={() =>
|
||||||
: window.open("https://budibase.com/pricing/", "_blank")} />
|
isOwner ? $licensing.goToUpgradePage() : $licensing.goToPricingPage()}
|
||||||
|
/>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.title {
|
.title {
|
||||||
|
|
|
@ -236,8 +236,6 @@
|
||||||
notifications.error("Error fetching user group data")
|
notifications.error("Error fetching user group data")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
let staticUserLimit = $licensing.license.quotas.usage.static.users.value
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Layout noPadding gap="M">
|
<Layout noPadding gap="M">
|
||||||
|
|
|
@ -12,6 +12,7 @@ export const createLicensingStore = () => {
|
||||||
const DEFAULT = {
|
const DEFAULT = {
|
||||||
// navigation
|
// navigation
|
||||||
goToUpgradePage: () => {},
|
goToUpgradePage: () => {},
|
||||||
|
goToPricingPage: () => {},
|
||||||
// the top level license
|
// the top level license
|
||||||
license: undefined,
|
license: undefined,
|
||||||
isFreePlan: true,
|
isFreePlan: true,
|
||||||
|
@ -71,10 +72,14 @@ export const createLicensingStore = () => {
|
||||||
const goToUpgradePage = () => {
|
const goToUpgradePage = () => {
|
||||||
window.location.href = upgradeUrl
|
window.location.href = upgradeUrl
|
||||||
}
|
}
|
||||||
|
const goToPricingPage = () => {
|
||||||
|
window.open("https://budibase.com/pricing/", "_blank")
|
||||||
|
}
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
goToUpgradePage,
|
goToUpgradePage,
|
||||||
|
goToPricingPage,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue