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 bb9df4a946..f31f5dba69 100644 --- a/packages/builder/src/pages/builder/portal/settings/environment/index.svelte +++ b/packages/builder/src/pages/builder/portal/settings/environment/index.svelte @@ -9,6 +9,7 @@ Table, Tags, Tag, + InlineAlert, } from "@budibase/bbui" import { environment, licensing, auth, admin } from "stores/portal" import { onMount } from "svelte" @@ -30,7 +31,10 @@ const customRenderers = [{ column: "edit", component: EditVariableColumn }] + $: encryptionKeyAvailable = $environment.status?.encryptionKeyAvailable + onMount(async () => { + await environment.checkStatus() await environment.loadVariables() }) @@ -55,11 +59,18 @@ > {#if $licensing.environmentVariablesEnabled} + {#if encryptionKeyAvailable === false} + + {/if} Add Variable {:else} -
+