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 2a1c865e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 />