From 541e448100bd9c892a55b43b377cdf083a15cfd2 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Fri, 15 Jul 2022 19:56:29 -0500 Subject: [PATCH] set the href for edit links in the directory list --- supervisor/shared/web_workflow/static/directory.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/supervisor/shared/web_workflow/static/directory.js b/supervisor/shared/web_workflow/static/directory.js index b2b76648c2..9dbe8384d6 100644 --- a/supervisor/shared/web_workflow/static/directory.js +++ b/supervisor/shared/web_workflow/static/directory.js @@ -91,6 +91,9 @@ async function refresh_list() { delete_button.disabled = !editable; delete_button.onclick = del; + let edit_url = new URL("/edit/#" + f.name, url_base); + let edit_link = clone.querySelector(".edit_link"); + edit_link.href = edit_url new_children.push(clone); }