Merge pull request #2855 from Budibase/hide-upgrade-modal

Hide upgrade button / modal from non-root account holders
This commit is contained in:
Rory Powell 2021-10-01 16:33:22 +01:00 committed by GitHub
commit 5654bce90b
2 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
<script>
import { Modal, ModalContent, Button } from "@budibase/bbui"
import { admin } from "stores/portal"
let upgradeModal
const onConfirm = () => {
window.open("https://account.budibase.app/portal/install", "_blank")
window.open(`${$admin.accountPortalUrl}/portal/install`, "_blank")
}
</script>

View File

@ -92,7 +92,7 @@
<ActionGroup />
</div>
<div class="toprightnav">
{#if $admin.cloud}
{#if $admin.cloud && $auth.user.account}
<UpgradeModal />
{/if}
<VersionModal />