1
0
Fork 0
mirror of synced 2024-05-18 11:23:28 +12:00
budibase/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte

37 lines
906 B
Svelte
Raw Normal View History

<script>
import AutomationList from "./AutomationList.svelte"
import CreateAutomationModal from "./CreateAutomationModal.svelte"
import { Modal, Tabs, Tab, Button, Layout } from "@budibase/bbui"
2021-09-02 02:23:40 +12:00
export let modal
2021-09-03 01:25:01 +12:00
export let webhookModal
</script>
<div class="nav">
<Tabs selected="Automations">
<Tab title="Automations">
<Layout paddingX="L" paddingY="L" gap="S">
<Button cta wide on:click={modal.show}>Add automation</Button>
</Layout>
<AutomationList />
<Modal bind:this={modal}>
<CreateAutomationModal {webhookModal} />
</Modal>
</Tab>
</Tabs>
</div>
<style>
.nav {
overflow-y: auto;
background: var(--background);
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
position: relative;
border-right: var(--border-light);
2022-10-25 03:02:56 +13:00
padding-bottom: 60px;
}
</style>