fix js
This commit is contained in:
parent
d4b98095c2
commit
f44471d9d0
|
@ -1,25 +0,0 @@
|
|||
<script>
|
||||
import { automationStore } from "builderStore"
|
||||
|
||||
import { ModalContent, Toggle } from "@budibase/bbui"
|
||||
|
||||
$: rowControl = $automationStore.selectedAutomation.automation.rowControl
|
||||
async function toggleFieldControl(evt) {
|
||||
await automationStore.actions.toggleFieldControl(evt.detail)
|
||||
await automationStore.actions.save(
|
||||
$automationStore.selectedAutomation?.automation
|
||||
)
|
||||
}
|
||||
</script>
|
||||
|
||||
<ModalContent
|
||||
title="Automation Configuration"
|
||||
showConfirmButton={false}
|
||||
showCancelButton={false}
|
||||
>
|
||||
<Toggle
|
||||
bind:value={rowControl}
|
||||
on:change={toggleFieldControl}
|
||||
text="Row Control"
|
||||
/>
|
||||
</ModalContent>
|
|
@ -14,12 +14,10 @@
|
|||
Toggle,
|
||||
Tooltip,
|
||||
} from "@budibase/bbui"
|
||||
import ConfigModal from "./ConfigModal.svelte"
|
||||
|
||||
export let automation
|
||||
export let onSelect
|
||||
|
||||
let configModal
|
||||
let testDataModal
|
||||
let blocks
|
||||
let confirmDeleteDialog
|
||||
|
@ -121,10 +119,6 @@
|
|||
<Modal bind:this={testDataModal} width="30%">
|
||||
<TestDataModal {testAutomation} />
|
||||
</Modal>
|
||||
|
||||
<Modal bind:this={configModal}>
|
||||
<ConfigModal />
|
||||
</Modal>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
{#if !schema.autocolumn}
|
||||
{#if schema.type !== "attachment"}
|
||||
{#if $automationStore.selectedAutomation.automation.testData}
|
||||
{#if $automationStore.selectedAutomation.automation.rowControl}
|
||||
{#if !$automationStore.selectedAutomation.automation.rowControl}
|
||||
<RowSelectorTypes
|
||||
{field}
|
||||
{schema}
|
||||
|
@ -115,10 +115,10 @@
|
|||
type={value.customType}
|
||||
on:change={e => onChange(e, field, schema.type)}
|
||||
{bindings}
|
||||
allowJS={true}
|
||||
allowJS={false}
|
||||
/>
|
||||
{/if}
|
||||
{:else if $automationStore.selectedAutomation.automation.rowControl}
|
||||
{:else if !$automationStore.selectedAutomation.automation.rowControl}
|
||||
<RowSelectorTypes {field} {schema} {bindings} {value} {onChange} />
|
||||
{:else}
|
||||
<DrawerBindableInput
|
||||
|
@ -130,7 +130,7 @@
|
|||
type="string"
|
||||
{bindings}
|
||||
fillWidth={true}
|
||||
allowJS={true}
|
||||
allowJS={false}
|
||||
/>
|
||||
{/if}
|
||||
{/if}
|
||||
|
|
|
@ -59,6 +59,6 @@
|
|||
type="string"
|
||||
{bindings}
|
||||
fillWidth={true}
|
||||
allowJS={true}
|
||||
allowJS={false}
|
||||
/>
|
||||
{/if}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
export let value = ""
|
||||
export let valid
|
||||
export let allowJS = false
|
||||
|
||||
$: console.log(value)
|
||||
let helpers = handlebarsCompletions()
|
||||
let getCaretPosition
|
||||
let search = ""
|
||||
|
|
Loading…
Reference in New Issue