From 6895f441bc7b6c3a8d3896fa669d7738dce28127 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 20 Aug 2023 09:32:42 +0200 Subject: [PATCH] Include params in the editor --- programs/server/dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/server/dashboard.html b/programs/server/dashboard.html index 10f32ee1ed2..b00b87c5cb9 100644 --- a/programs/server/dashboard.html +++ b/programs/server/dashboard.html @@ -861,7 +861,7 @@ function showMassEditor() { editor_div.style.display = 'grid'; let editor = document.getElementById('mass-editor-textarea'); - editor.value = JSON.stringify(queries, null, 2); + editor.value = JSON.stringify({params: params, queries: queries}, null, 2); mass_editor_active = true; } @@ -875,7 +875,7 @@ function hideMassEditor() { function massEditorApplyChanges() { let editor = document.getElementById('mass-editor-textarea'); - queries = JSON.parse(editor.value); + ({params, queries} = JSON.parse(editor.value)); hideMassEditor(); regenerate(); drawAll();