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

View File

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