Add link to account portal

This commit is contained in:
Peter Clement 2021-08-12 12:09:53 +01:00
parent b2bc9a5e20
commit 48c40446f0
2 changed files with 11 additions and 2 deletions

View File

@ -2,6 +2,10 @@
import { Modal, ModalContent, Button } from "@budibase/bbui" import { Modal, ModalContent, Button } from "@budibase/bbui"
let upgradeModal let upgradeModal
const onConfirm = () => {
window.open("https://accounts.budibase.com/install", "_blank")
}
</script> </script>
<div> <div>
@ -14,7 +18,12 @@
> >
</div> </div>
<Modal bind:this={upgradeModal}> <Modal bind:this={upgradeModal}>
<ModalContent size="M" title="Upgrade to self-hosted" confirmText="Upgrade"> <ModalContent
size="M"
{onConfirm}
title="Upgrade to self-hosted"
confirmText="Upgrade"
>
<span <span
>Upgrade to Budibase self-hosting for free, and get SSO, unlimited apps, >Upgrade to Budibase self-hosting for free, and get SSO, unlimited apps,
and more - and it only takes 10 minutes!</span and more - and it only takes 10 minutes!</span

View File

@ -3,6 +3,6 @@ const env = require("../../../environment")
exports.fetch = async ctx => { exports.fetch = async ctx => {
ctx.body = { ctx.body = {
multiTenancy: !!env.MULTI_TENANCY, multiTenancy: !!env.MULTI_TENANCY,
sandbox: !!env.SANDBOX sandbox: !!env.SANDBOX,
} }
} }