From 8caab5d9743f068c48360bbdfef30b338d8f96db Mon Sep 17 00:00:00 2001 From: Darshan Date: Mon, 30 Dec 2024 17:54:50 +0530 Subject: [PATCH] fix: env var text for create, update or upload. --- .../(console)/project-[project]/createVariable.svelte | 6 +++--- .../(console)/project-[project]/updateVariables.svelte | 7 ++++--- .../project-[project]/uploadVariablesModal.svelte | 7 ++++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/routes/(console)/project-[project]/createVariable.svelte b/src/routes/(console)/project-[project]/createVariable.svelte index 3987af20c..435dd8eb3 100644 --- a/src/routes/(console)/project-[project]/createVariable.svelte +++ b/src/routes/(console)/project-[project]/createVariable.svelte @@ -44,9 +44,9 @@ title={`${selectedVar ? 'Update' : 'Create'} ${isGlobal ? 'global' : 'environment'} variable`}> - Set the environment variables or secret keys that will be passed to {isGlobal - ? `all ${product}s within your project` - : `your ${product}s`}. + Set the environment variables or secret keys that will be passed to {!isGlobal + ? `your ${product}s` + : `all functions and sites within your project`}. diff --git a/src/routes/(console)/project-[project]/updateVariables.svelte b/src/routes/(console)/project-[project]/updateVariables.svelte index db30c01ce..9095e604a 100644 --- a/src/routes/(console)/project-[project]/updateVariables.svelte +++ b/src/routes/(console)/project-[project]/updateVariables.svelte @@ -191,12 +191,12 @@ {#if isGlobal}

- Set the environment variables or secret keys that will be passed to all functions within - your project. + Set the environment variables or secret keys that will be passed to all functions and + sites within your project.

{:else}

- Set the environment variables or secret keys that will be passed to your function. + Set the environment variables or secret keys that will be passed to your {product}. Global variables can be found in project settings Import new {isGlobal ? 'global' : 'environment'} variables from .env - file that will be passed to {isGlobal - ? 'all functions within your project' - : 'your function'}. + file that will be passed to {!isGlobal + ? `your ${product}` + : 'all functions and sites within your project'}.

{#if variableList.total > 0}