Removed cloud flag restriction on auth branding pages

This commit is contained in:
Dean 2023-06-26 15:50:14 +01:00
parent 193899d7d0
commit 65d7e2397e
1 changed files with 55 additions and 59 deletions

View File

@ -277,20 +277,18 @@
allowClear={true} allowClear={true}
/> />
</div> </div>
{#if !isCloud} <div class="field">
<div class="field"> <Label size="L">Title</Label>
<Label size="L">Title</Label> <Input
<Input on:change={e => {
on:change={e => { let clone = { ...config }
let clone = { ...config } clone.platformTitle = e.detail ? e.detail : ""
clone.platformTitle = e.detail ? e.detail : "" config = clone
config = clone }}
}} value={config.platformTitle || ""}
value={config.platformTitle || ""} disabled={!brandingEnabled || saving}
disabled={!brandingEnabled || saving} />
/> </div>
</div>
{/if}
<div> <div>
<Toggle <Toggle
text={"Remove Budibase brand from emails"} text={"Remove Budibase brand from emails"}
@ -305,54 +303,52 @@
</div> </div>
</div> </div>
{#if !isCloud} <Divider />
<Divider /> <Layout gap="XS" noPadding>
<Layout gap="XS" noPadding> <Heading size="S">Login page</Heading>
<Heading size="S">Login page</Heading> <Body />
<Body /> </Layout>
</Layout> <div class="login">
<div class="login"> <div class="fields">
<div class="fields"> <div class="field">
<div class="field"> <Label size="L">Header</Label>
<Label size="L">Header</Label> <Input
<Input on:change={e => {
on:change={e => { let clone = { ...config }
let clone = { ...config } clone.loginHeading = e.detail ? e.detail : ""
clone.loginHeading = e.detail ? e.detail : "" config = clone
config = clone }}
}} value={config.loginHeading || ""}
value={config.loginHeading || ""} disabled={!brandingEnabled || saving}
disabled={!brandingEnabled || saving} />
/> </div>
</div>
<div class="field"> <div class="field">
<Label size="L">Button</Label> <Label size="L">Button</Label>
<Input <Input
on:change={e => { on:change={e => {
let clone = { ...config } let clone = { ...config }
clone.loginButton = e.detail ? e.detail : "" clone.loginButton = e.detail ? e.detail : ""
config = clone config = clone
}} }}
value={config.loginButton || ""} value={config.loginButton || ""}
disabled={!brandingEnabled || saving} disabled={!brandingEnabled || saving}
/> />
</div> </div>
<div> <div>
<Toggle <Toggle
text={"Remove customer testimonials"} text={"Remove customer testimonials"}
on:change={e => { on:change={e => {
let clone = { ...config } let clone = { ...config }
clone.testimonialsEnabled = !e.detail clone.testimonialsEnabled = !e.detail
config = clone config = clone
}} }}
value={!config.testimonialsEnabled} value={!config.testimonialsEnabled}
disabled={!brandingEnabled || saving} disabled={!brandingEnabled || saving}
/> />
</div>
</div> </div>
</div> </div>
{/if} </div>
<Divider /> <Divider />
<Layout gap="XS" noPadding> <Layout gap="XS" noPadding>
<Heading size="S">Application previews</Heading> <Heading size="S">Application previews</Heading>