From 181c743db214da71e6aa69ce99d60568596a3d32 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 14 Feb 2025 16:20:42 +0100 Subject: [PATCH] add alert to bulk editor --- .../create-site/variableEditorModal.svelte | 77 +++++++++++-------- 1 file changed, 44 insertions(+), 33 deletions(-) diff --git a/src/routes/(console)/project-[project]/sites/create-site/variableEditorModal.svelte b/src/routes/(console)/project-[project]/sites/create-site/variableEditorModal.svelte index dbf9eee8b..0238cf2cf 100644 --- a/src/routes/(console)/project-[project]/sites/create-site/variableEditorModal.svelte +++ b/src/routes/(console)/project-[project]/sites/create-site/variableEditorModal.svelte @@ -9,6 +9,8 @@ import { IconDownload, IconDuplicate } from '@appwrite.io/pink-icons-svelte'; import { InputTextarea } from '$lib/elements/forms'; import type { Models } from '@appwrite.io/console'; + import Alert from '$lib/components/alert.svelte'; + import { Link } from '$lib/elements'; export let showEditor = false; export let variables: Partial[]; @@ -130,42 +132,51 @@ bind:error submitOnEnter={false}>

Add, edit, or delete environment variables using a raw editor.

- - - (tab = 'env')} active={tab === 'env'}> - ENV - - (tab = 'json')} active={tab === 'json'}> - JSON - - - - {#if tab === 'env'} - - {:else if tab === 'json'} - - {/if} - - + + {#if secretVariables?.length > 0} + + {secretVariables.length} secret variables are hidden from the editor. Their values will + remain unchanged. Learn more. + + {/if} + + + (tab = 'env')} active={tab === 'env'}> + ENV + + (tab = 'json')} active={tab === 'json'}> + JSON + + - - - + + + + +