Removed the license agreement toggle

This commit is contained in:
Dean 2023-03-27 15:32:45 +01:00
parent 1d97e2a908
commit eb3e38bb61
5 changed files with 2 additions and 15 deletions

View File

@ -1,5 +1,5 @@
<script>
import { organisation, auth, admin } from "stores/portal"
import { organisation, auth } from "stores/portal"
import { onMount } from "svelte"
let loaded = false

View File

@ -147,7 +147,7 @@
</Layout>
{/if}
{#if cloud && $organisation.licenseAgreementEnabled}
{#if cloud}
<Body size="xs" textAlign="center">
By using Budibase Cloud
<br />

View File

@ -192,7 +192,6 @@
emailBrandingEnabled: $organisation.emailBrandingEnabled,
loginHeading: $organisation.loginHeading,
loginButton: $organisation.loginButton,
licenseAgreementEnabled: $organisation.licenseAgreementEnabled,
testimonialsEnabled: $organisation.testimonialsEnabled,
metaDescription: $organisation.metaDescription,
metaImageUrl: $organisation.metaImageUrl,
@ -344,16 +343,6 @@
value={!config.testimonialsEnabled}
disabled={!brandingEnabled || saving}
/>
<Toggle
text={"Remove license agreement"}
on:change={e => {
let clone = { ...config }
clone.licenseAgreementEnabled = !e.detail
config = clone
}}
value={!config.licenseAgreementEnabled}
disabled={!brandingEnabled || saving}
/>
</div>
</div>
</div>

View File

@ -9,7 +9,6 @@ const DEFAULT_CONFIG = {
faviconUrl: undefined,
emailBrandingEnabled: true,
testimonialsEnabled: true,
licenseAgreementEnabled: true,
platformTitle: "Budibase",
loginHeading: undefined,
loginButton: undefined,

View File

@ -33,7 +33,6 @@ export interface SettingsInnerConfig {
emailBrandingEnabled?: boolean
testimonialsEnabled?: boolean
licenseAgreementEnabled?: boolean
platformTitle?: string
loginHeading?: string
loginButton?: string