Updates from PR comments.

This commit is contained in:
Michael Drury 2023-06-09 14:35:46 +01:00
parent deffe9d3d4
commit 06eb965564
2 changed files with 7 additions and 10 deletions

View File

@ -26,16 +26,14 @@
return valid return valid
} }
const styles = () => { const styles = [
let styleString = "" `--fancy-field-max-width: ${noMaxWidth ? "auto" : "400px"}`,
styleString += `--fancy-field-max-width: ${noMaxWidth ? "auto" : "400px"}` `--fancy-field-height: ${compact ? "36px" : "64px"}`,
styleString += `; --fancy-field-height: ${compact ? "36px" : "64px"}` `--fancy-field-padding: ${compact ? "8px" : "16px"}`,
styleString += `; --fancy-field-padding: ${compact ? "8px" : "16px"}` ].join("; ")
return styleString
}
</script> </script>
<div class="fancy-form" style={styles()}> <div class="fancy-form" style={styles}>
<slot /> <slot />
</div> </div>

View File

@ -26,7 +26,6 @@
let selectedTables = [] let selectedTables = []
let tableList = [] let tableList = []
$: console.log(selectedTables)
$: name = $: name =
IntegrationNames[datasource?.type] || datasource?.name || datasource?.type IntegrationNames[datasource?.type] || datasource?.name || datasource?.type
$: datasourcePlus = datasource?.plus $: datasourcePlus = datasource?.plus
@ -38,7 +37,7 @@
: "Save and continue to query" : "Save and continue to query"
async function validateConfig() { async function validateConfig() {
if (!integration.features[DatasourceFeature.CONNECTION_CHECKING]) { if (!integration.features?.[DatasourceFeature.CONNECTION_CHECKING]) {
return true return true
} }
const displayError = message => const displayError = message =>