2020-05-28 08:51:32 +12:00
|
|
|
<script>
|
2020-10-27 01:18:34 +13:00
|
|
|
import AutomationList from "./AutomationList.svelte"
|
|
|
|
import CreateAutomationModal from "./CreateAutomationModal.svelte"
|
2022-11-07 11:35:33 +13:00
|
|
|
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
|
2020-05-28 08:51:32 +12:00
|
|
|
</script>
|
|
|
|
|
2022-10-25 02:56:05 +13:00
|
|
|
<div class="nav">
|
2021-04-16 21:49:08 +12:00
|
|
|
<Tabs selected="Automations">
|
|
|
|
<Tab title="Automations">
|
2022-11-07 11:35:33 +13:00
|
|
|
<Layout paddingX="L" paddingY="L" gap="S">
|
|
|
|
<Button cta wide on:click={modal.show}>Add automation</Button>
|
|
|
|
</Layout>
|
2022-03-22 04:48:00 +13:00
|
|
|
<AutomationList />
|
|
|
|
<Modal bind:this={modal}>
|
|
|
|
<CreateAutomationModal {webhookModal} />
|
|
|
|
</Modal>
|
2021-04-16 21:49:08 +12:00
|
|
|
</Tab>
|
|
|
|
</Tabs>
|
2020-10-27 01:18:34 +13:00
|
|
|
</div>
|
2020-05-28 08:51:32 +12:00
|
|
|
|
|
|
|
<style>
|
2022-10-25 02:56:05 +13:00
|
|
|
.nav {
|
|
|
|
overflow-y: auto;
|
|
|
|
background: var(--background);
|
2020-05-28 08:51:32 +12:00
|
|
|
display: flex;
|
2021-04-16 21:49:08 +12:00
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: stretch;
|
|
|
|
position: relative;
|
2022-10-25 02:56:05 +13:00
|
|
|
border-right: var(--border-light);
|
2022-10-25 03:02:56 +13:00
|
|
|
padding-bottom: 60px;
|
2020-10-27 01:18:34 +13:00
|
|
|
}
|
2020-05-28 08:51:32 +12:00
|
|
|
</style>
|