fix mssql encryption option
This commit is contained in:
parent
faaf49c562
commit
09ce58aa95
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { Label, Input, Layout } from "@budibase/bbui"
|
import { Label, Input, Layout, Toggle } from "@budibase/bbui"
|
||||||
import KeyValueBuilder from "components/integration/KeyValueBuilder.svelte"
|
import KeyValueBuilder from "components/integration/KeyValueBuilder.svelte"
|
||||||
import { capitalise } from "helpers"
|
import { capitalise } from "helpers"
|
||||||
|
|
||||||
|
@ -16,6 +16,11 @@
|
||||||
defaults={schema[configKey].default}
|
defaults={schema[configKey].default}
|
||||||
bind:object={integration[configKey]}
|
bind:object={integration[configKey]}
|
||||||
/>
|
/>
|
||||||
|
{:else if schema[configKey].type === "boolean"}
|
||||||
|
<div class="form-row">
|
||||||
|
<Label>{capitalise(configKey)}</Label>
|
||||||
|
<Toggle text="" bind:value={integration[configKey]} />
|
||||||
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<Label>{capitalise(configKey)}</Label>
|
<Label>{capitalise(configKey)}</Label>
|
||||||
|
|
|
@ -6,6 +6,7 @@ exports.QUERY_TYPES = {
|
||||||
|
|
||||||
exports.FIELD_TYPES = {
|
exports.FIELD_TYPES = {
|
||||||
STRING: "string",
|
STRING: "string",
|
||||||
|
BOOLEAN: "boolean",
|
||||||
NUMBER: "number",
|
NUMBER: "number",
|
||||||
PASSWORD: "password",
|
PASSWORD: "password",
|
||||||
LIST: "list",
|
LIST: "list",
|
||||||
|
|
|
@ -31,6 +31,10 @@ const SCHEMA = {
|
||||||
type: FIELD_TYPES.STRING,
|
type: FIELD_TYPES.STRING,
|
||||||
default: "root",
|
default: "root",
|
||||||
},
|
},
|
||||||
|
encrypt: {
|
||||||
|
type: FIELD_TYPES.BOOLEAN,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
query: {
|
query: {
|
||||||
create: {
|
create: {
|
||||||
|
@ -51,6 +55,10 @@ const SCHEMA = {
|
||||||
class SqlServerIntegration {
|
class SqlServerIntegration {
|
||||||
constructor(config) {
|
constructor(config) {
|
||||||
this.config = config
|
this.config = config
|
||||||
|
this.config.options = {
|
||||||
|
encrypt: this.config.encrypt,
|
||||||
|
}
|
||||||
|
delete this.config.encrypt
|
||||||
if (!pool) {
|
if (!pool) {
|
||||||
pool = new sqlServer.ConnectionPool(this.config)
|
pool = new sqlServer.ConnectionPool(this.config)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue