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

View File

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

View File

@ -213,7 +213,7 @@
<Layout noPadding gap="M">
<Layout gap="XS" noPadding>
<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>
<Divider />
<div class="controls">
@ -254,7 +254,6 @@
allowEditColumns={false}
allowEditRows={false}
allowSelectRows={true}
showHeaderBorder={false}
{customRenderers}
/>
<div class="pagination">

View File

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

View File

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