1
0
Fork 0
mirror of synced 2024-07-07 23:35:49 +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> <script>
import { Page } from "@budibase/bbui" import { Page } from "@budibase/bbui"
import { auth } from "stores/portal" import { auth } from "stores/portal"
import { redirect } from "@roxi/routify" import { page, redirect } from "@roxi/routify"
// Only admins allowed here // Only admins allowed here
$: { $: {
@ -9,8 +9,12 @@
$redirect("../") $redirect("../")
} }
} }
$: console.log($page)
</script> </script>
{#if $auth.isAdmin} {#if $auth.isAdmin}
<Page wide={$page.path.includes("email/:template")}>
<slot /> <slot />
</Page>
{/if} {/if}

View file

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

View file

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