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

View File

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