1
0
Fork 0
mirror of synced 2024-07-05 06:20:55 +12:00

fix double page component issue in email section

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-25 15:25:56 +02:00
parent 3dc7ba268e
commit ab56fceaae
3 changed files with 127 additions and 127 deletions

View file

@ -1,7 +1,7 @@
<script>
import { Page } from "@budibase/bbui"
import { auth } from "stores/portal"
import { redirect } from "@roxi/routify"
import { page, redirect } from "@roxi/routify"
// Only admins allowed here
$: {
@ -9,8 +9,12 @@
$redirect("../")
}
}
$: console.log($page)
</script>
{#if $auth.isAdmin}
<Page wide={$page.path.includes("email/:template")}>
<slot />
</Page>
{/if}

View file

@ -69,7 +69,6 @@
}
</script>
<Page wide>
<Layout gap="XS" noPadding>
<div class="back">
<ActionButton
@ -133,7 +132,6 @@
</div>
</Tab>
</Tabs>
</Page>
<style>
.template-editor {

View file

@ -76,7 +76,6 @@
fetchSmtp()
</script>
<Page>
<Layout>
<Layout noPadding gap="XS">
<Heading size="M">Email</Heading>
@ -140,7 +139,6 @@
/>
{/if}
</Layout>
</Page>
<style>
.form-row {