Make portal text consistent and hide upgrade prompts when you already have access

This commit is contained in:
Andrew Kingston 2022-09-23 16:10:40 +01:00
parent 9539b5fc35
commit 39a3a478b7
5 changed files with 18 additions and 20 deletions

View File

@ -99,10 +99,12 @@
</div> </div>
</Tags> </Tags>
{/if} {/if}
<Body>Easily assign and manage your users' access with user groups</Body> <Body>
{#if !$auth.accountPortalAccess} Easily assign and manage your users' access with user groups.
<Body>Contact your account holder to upgrade</Body> {#if !$auth.accountPortalAccess && !$licensing.groupsEnabled}
{/if} Contact your account holder to upgrade your plan.
{/if}
</Body>
</Layout> </Layout>
<Divider /> <Divider />
<div class="controls"> <div class="controls">
@ -147,7 +149,6 @@
data={filteredGroups} data={filteredGroups}
allowEditColumns={false} allowEditColumns={false}
allowEditRows={false} allowEditRows={false}
showHeaderBorder={false}
{customRenderers} {customRenderers}
/> />
</Layout> </Layout>

View File

@ -45,7 +45,7 @@
<Layout noPadding> <Layout noPadding>
<Layout gap="XS" noPadding> <Layout gap="XS" noPadding>
<Heading size="M">Plugins</Heading> <Heading size="M">Plugins</Heading>
<Body>Add your own custom datasources and components</Body> <Body>Add your own custom datasources and components.</Body>
</Layout> </Layout>
<Divider size="S" /> <Divider size="S" />
<Layout noPadding> <Layout noPadding>

View File

@ -213,7 +213,7 @@
<Layout noPadding gap="M"> <Layout noPadding gap="M">
<Layout gap="XS" noPadding> <Layout gap="XS" noPadding>
<Heading>Users</Heading> <Heading>Users</Heading>
<Body>Add users and control who gets access to your published apps</Body> <Body>Add users and control who gets access to your published apps.</Body>
</Layout> </Layout>
<Divider /> <Divider />
<div class="controls"> <div class="controls">
@ -254,7 +254,6 @@
allowEditColumns={false} allowEditColumns={false}
allowEditRows={false} allowEditRows={false}
allowSelectRows={true} allowSelectRows={true}
showHeaderBorder={false}
{customRenderers} {customRenderers}
/> />
<div class="pagination"> <div class="pagination">

View File

@ -81,14 +81,12 @@
<Heading size="M">Upgrade</Heading> <Heading size="M">Upgrade</Heading>
<Body size="M"> <Body size="M">
{#if license.plan.type === "free"} {#if license.plan.type === "free"}
Upgrade your budibase installation to unlock additional features. To Upgrade your Budibase installation to unlock additional features. To
subscribe to a plan visit your <Link size="L" href={upgradeUrl} subscribe to a plan visit your
>Account</Link <Link size="L" href={upgradeUrl}>Account</Link>.
>.
{:else} {:else}
To manage your plan visit your <Link size="L" href={upgradeUrl} To manage your plan visit your
>Account</Link <Link size="L" href={upgradeUrl}>Account</Link>.
>.
{/if} {/if}
</Body> </Body>
</Layout> </Layout>
@ -100,7 +98,7 @@
<Layout noPadding> <Layout noPadding>
<div class="fields"> <div class="fields">
<div class="field"> <div class="field">
<Label size="L">License Key</Label> <Label size="L">License key</Label>
<Input <Input
thin thin
bind:value={licenseKey} bind:value={licenseKey}

View File

@ -177,17 +177,17 @@
{#if loaded} {#if loaded}
<Layout noPadding> <Layout noPadding>
<Layout noPadding gap="S"> <Layout noPadding gap="XS">
<Heading>Usage</Heading> <Heading>Usage</Heading>
<Body <Body>
>Get information about your current usage within Budibase. Get information about your current usage within Budibase.
{#if accountPortalAccess} {#if accountPortalAccess}
To upgrade your plan and usage limits visit your <Link To upgrade your plan and usage limits visit your <Link
on:click={goToAccountPortal} on:click={goToAccountPortal}
size="L">Account</Link size="L">Account</Link
> >
{:else} {:else}
To upgrade your plan and usage limits contact your account holder To upgrade your plan and usage limits contact your account holder.
{/if} {/if}
</Body> </Body>
</Layout> </Layout>