This commit is contained in:
Martin McKeaveney 2021-06-08 17:14:46 +01:00
parent feca6cc962
commit 65abd63744
2 changed files with 3 additions and 9 deletions

View File

@ -49,7 +49,7 @@
$: queryConfig = integrationInfo?.query
$: shouldShowQueryConfig = queryConfig && query.queryVerb
$: readQuery = query.queryVerb === "read" || query.readable
$: queryInvalid = !query.name || (readQuery && data.length === 0)
$: queryInvalid = !query.name || (readQuery && data.length === 0)
function newField() {
fields = [...fields, {}]
@ -152,11 +152,7 @@
<div class="viewer-controls">
<Heading size="S">Results</Heading>
<ButtonGroup>
<Button
cta
disabled={queryInvalid}
on:click={saveQuery}
>
<Button cta disabled={queryInvalid} on:click={saveQuery}>
Save Query
</Button>
<Button secondary on:click={previewQuery}>Run Query</Button>

View File

@ -9,8 +9,6 @@
let fieldState
let fieldApi
// $: if (fieldApi && $fieldState.value === null) fieldApi.setValue(false)
</script>
<Field