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"
|
|
|
|
import { Modal } from "@budibase/bbui"
|
|
|
|
import { automationStore, backendUiStore } from "builderStore"
|
|
|
|
import { notifier } from "builderStore/store/notifications"
|
2020-05-28 08:51:32 +12:00
|
|
|
|
2020-09-22 00:49:34 +12:00
|
|
|
let selectedTab = "AUTOMATIONS"
|
2020-10-27 01:18:34 +13:00
|
|
|
let modal
|
2020-05-28 08:51:32 +12:00
|
|
|
</script>
|
|
|
|
|
2020-10-27 01:18:34 +13:00
|
|
|
<div class="title">
|
|
|
|
<h1>Automations</h1>
|
|
|
|
<i on:click={modal.show} class="ri-add-circle-fill" />
|
|
|
|
</div>
|
|
|
|
<AutomationList />
|
|
|
|
<Modal bind:this={modal}>
|
|
|
|
<CreateAutomationModal />
|
|
|
|
</Modal>
|
2020-05-28 08:51:32 +12:00
|
|
|
|
|
|
|
<style>
|
2020-10-27 01:18:34 +13:00
|
|
|
.title {
|
2020-05-28 08:51:32 +12:00
|
|
|
display: flex;
|
2020-10-27 01:18:34 +13:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
2020-05-28 08:51:32 +12:00
|
|
|
align-items: center;
|
|
|
|
}
|
2020-10-27 01:18:34 +13:00
|
|
|
.title h1 {
|
|
|
|
font-size: var(--font-size-m);
|
|
|
|
font-weight: 500;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.title i {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
.title i:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--blue);
|
2020-06-01 04:12:52 +12:00
|
|
|
}
|
|
|
|
|
2020-05-28 08:51:32 +12:00
|
|
|
span:not(.selected) {
|
2020-06-23 19:19:16 +12:00
|
|
|
color: var(--grey-5);
|
2020-06-05 06:27:25 +12:00
|
|
|
}
|
|
|
|
|
2020-06-05 06:30:44 +12:00
|
|
|
span:not(.selected):hover {
|
2020-06-05 06:27:25 +12:00
|
|
|
color: var(--ink);
|
2020-05-28 08:51:32 +12:00
|
|
|
}
|
|
|
|
</style>
|