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>
|
<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>
|
||||||
|
|
||||||
|
|
|
@ -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 />
|
||||||
|
|
Loading…
Reference in New Issue