mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-30 08:16:49 +00:00
fix: Fix error handler token injection (#2598)
* fix: Fix error handler token injection * Add frontend
This commit is contained in:
@@ -218,7 +218,8 @@
|
||||
<span class="w-full flex mb-3">
|
||||
<Toggle
|
||||
disabled={!$enterpriseLicense || !isEditable}
|
||||
checked={handlerPath === slackHandlerScriptPath}
|
||||
checked={handlerPath?.startsWith('hub/') &&
|
||||
handlerPath?.endsWith('/workspace-or-schedule-error-handler-slack')}
|
||||
options={{ right: slackToggleText }}
|
||||
on:change={async (e) => {
|
||||
handlerPath = e.detail ? slackHandlerScriptPath : undefined
|
||||
@@ -238,7 +239,7 @@
|
||||
class="text-xs"
|
||||
/>
|
||||
{/if}
|
||||
{#if handlerPath === slackHandlerScriptPath && enterpriseLicense}
|
||||
{#if enterpriseLicense && handlerPath?.startsWith('hub/') && handlerPath?.endsWith('/workspace-or-schedule-error-handler-slack')}
|
||||
{#if !workspaceConnectedToSlack}
|
||||
<Alert type="error" title="Workspace not connected to Slack">
|
||||
<div class="flex flex-row gap-x-1 w-full items-center">
|
||||
|
||||
Reference in New Issue
Block a user