From ed7935fc6caa7709551dab6e5d11c8dff66b8de9 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Sat, 24 May 2025 15:39:48 +0530 Subject: [PATCH] added reactive state for string size and the cloud and self hosted env popper encryption trigger --- .../collection-[collection]/attributes/string.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte index 23d54a40d..c60ac8a32 100644 --- a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte +++ b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte @@ -91,7 +91,11 @@ $: handleDefaultState($required || $array); - $: hasDatabaseEncryptionPlan = isCloud && $currentPlan?.databasesAllowEncrypt; + $: hasDatabaseEncryptionPlan = isCloud ? $currentPlan?.databasesAllowEncrypt : true; + + $: if (data.encrypt && data.size < 150) { + data.size = 150; + }