diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/RestExtraConfigForm.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/RestExtraConfigForm.svelte index cbfbe15b95..53663a4841 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/RestExtraConfigForm.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/RestExtraConfigForm.svelte @@ -16,6 +16,7 @@ runtimeToReadableMap, } from "builderStore/dataBinding" import { cloneDeep } from "lodash/fp" + import { getEnvironmentBindings } from "builderStore/dataBinding" export let datasource export let queries @@ -93,6 +94,7 @@ headings bind:object={datasource.config.staticVariables} on:change + bindings={getEnvironmentBindings()} />
diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte index f19f2279d9..d30ed72c94 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte @@ -1,9 +1,22 @@ {#if form.type === AUTH_TYPES.BASIC} - (blurred.basic.username = true)} error={blurred.basic.username ? errors.basic.username : null} + showModal={() => showModal("configKey")} + variables={$environment.variables} + environmentVariablesEnabled={$licensing.environmentVariablesEnabled} + {handleUpgradePanel} /> - (blurred.basic.password = true)} error={blurred.basic.password ? errors.basic.password : null} + showModal={() => showModal("configKey")} + variables={$environment.variables} + environmentVariablesEnabled={$licensing.environmentVariablesEnabled} + {handleUpgradePanel} /> {/if} {#if form.type === AUTH_TYPES.BEARER} { form.bearer.token = e.detail onFieldChange() @@ -226,3 +277,7 @@ {/if} + + + + diff --git a/packages/builder/src/components/portal/environment/CreateEditVariableModal.svelte b/packages/builder/src/components/portal/environment/CreateEditVariableModal.svelte index 70029eb3c5..7cf2270c49 100644 --- a/packages/builder/src/components/portal/environment/CreateEditVariableModal.svelte +++ b/packages/builder/src/components/portal/environment/CreateEditVariableModal.svelte @@ -20,7 +20,6 @@ let name = row?.name || "" let productionValue let developmentValue - let useProductionValue = true const deleteVariable = name => { @@ -71,7 +70,7 @@ { - developmentValue = e.target.value + developmentValue = e.detail }} disabled={useProductionValue} label="Value" diff --git a/packages/builder/src/pages/builder/portal/settings/environment/index.svelte b/packages/builder/src/pages/builder/portal/settings/environment/index.svelte index fbe5a675c9..024c78df4c 100644 --- a/packages/builder/src/pages/builder/portal/settings/environment/index.svelte +++ b/packages/builder/src/pages/builder/portal/settings/environment/index.svelte @@ -56,7 +56,7 @@ Environment Variables {#if !$licensing.environmentVariablesEnabled} - Pro plan + Business plan {/if}
@@ -64,6 +64,8 @@ >Add and manage environment variables for development and production + + {#if $licensing.environmentVariablesEnabled} {#if noEncryptionKey} {/if} - +
+ +
+ -
- -
{:else}