Merge pull request #2855 from Budibase/hide-upgrade-modal
Hide upgrade button / modal from non-root account holders
This commit is contained in:
commit
5654bce90b
|
@ -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>
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
<ActionGroup />
|
||||
</div>
|
||||
<div class="toprightnav">
|
||||
{#if $admin.cloud}
|
||||
{#if $admin.cloud && $auth.user.account}
|
||||
<UpgradeModal />
|
||||
{/if}
|
||||
<VersionModal />
|
||||
|
|
Loading…
Reference in New Issue