From 37f694c69d75d87d85941383edd98042dd0a409b Mon Sep 17 00:00:00 2001 From: AlexRV12 <71396855+AlexRV12@users.noreply.github.com> Date: Thu, 24 Sep 2026 15:54:49 +0200 Subject: [PATCH] fix(frontend): disable the Slack and Teams handler controls without a license Matches the workspace error handler, which greys out its built-in destinations and hides the test button on an unlicensed instance. The custom destination stays editable: unlike the error handler, the variable expiration handler itself is not an EE feature. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../lib/components/VariableExpirationHandler.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/components/VariableExpirationHandler.svelte b/frontend/src/lib/components/VariableExpirationHandler.svelte index bfb1593241..95f34f530d 100644 --- a/frontend/src/lib/components/VariableExpirationHandler.svelte +++ b/frontend/src/lib/components/VariableExpirationHandler.svelte @@ -47,7 +47,7 @@ import type { Schema, SupportedLanguage } from '$lib/common' import { base } from '$lib/base' - import { workspaceStore } from '$lib/stores' + import { enterpriseLicense, workspaceStore } from '$lib/stores' import { emptySchema, emptyString, sendUserToast, tryEvery } from '$lib/utils' import { FlowService, @@ -301,7 +301,7 @@ {#if workspaceConnectedToSlack} { @@ -316,7 +316,7 @@ {:then Module} { @@ -378,7 +378,7 @@ {/if} {/if} - {#if (isSlackHandler || isTeamsHandler) && isEditable} + {#if (isSlackHandler || isTeamsHandler) && isEditable && $enterpriseLicense}