From 3134f79ced80aab86912643ab7a60dcf909ab104 Mon Sep 17 00:00:00 2001
From: HugoCasa
Date: Wed, 2 Oct 2024 12:07:11 +0200
Subject: [PATCH] fix(frontend): disable runnable field on route editor from
detail panel (#4469)
---
.../lib/components/triggers/RouteEditorInner.svelte | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/frontend/src/lib/components/triggers/RouteEditorInner.svelte b/frontend/src/lib/components/triggers/RouteEditorInner.svelte
index 2fa7998295..19846e5c24 100644
--- a/frontend/src/lib/components/triggers/RouteEditorInner.svelte
+++ b/frontend/src/lib/components/triggers/RouteEditorInner.svelte
@@ -28,6 +28,7 @@
let script_path = ''
let initialScriptPath = ''
+ let fixedScriptPath = ''
let drawerLoading = true
export async function openEdit(ePath: string, isFlow: boolean) {
@@ -46,7 +47,7 @@
}
}
- export async function openNew(nis_flow: boolean, initial_script_path?: string) {
+ export async function openNew(nis_flow: boolean, fixedScriptPath_?: string) {
drawerLoading = true
try {
drawer?.openDrawer()
@@ -58,8 +59,9 @@
initialRoutePath = ''
route_path = ''
http_method = 'post'
- initialScriptPath = initial_script_path ?? ''
- script_path = initialScriptPath
+ initialScriptPath = ''
+ fixedScriptPath = fixedScriptPath_ ?? ''
+ script_path = fixedScriptPath
path = ''
initialPath = ''
dirtyPath = false
@@ -282,8 +284,8 @@