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

View File

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