From 94d1647c3515f35935f45302b0224c4ef3045ad3 Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 2 Jan 2026 17:51:13 +0100 Subject: [PATCH] correctly showing the specific api on confirm. see #102 --- pages/customprompts/mzta-custom-prompts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/customprompts/mzta-custom-prompts.js b/pages/customprompts/mzta-custom-prompts.js index c364d929..b9560e62 100644 --- a/pages/customprompts/mzta-custom-prompts.js +++ b/pages/customprompts/mzta-custom-prompts.js @@ -801,6 +801,12 @@ function handleConfirmClick(e) { tr.querySelector('.type_show').innerText = tr.querySelector('.type_output').selectedOptions[0].text; tr.querySelector('.action').innerText = tr.querySelector('.action_output').value; tr.querySelector('.action_show').innerText = tr.querySelector('.action_output').selectedOptions[0].text; + if (newValues.api_type !== '') { + tr.querySelector('.api_type_show').innerText = newValues.api_type; + tr.querySelector('.api_additional_info_show').style.display = 'block'; + tr.querySelector('.api_additional_info_row').style.display = 'block'; + + } // the checkboxes update is handled directly by themselves hideItemRowEditor(tr); setSomethingChanged();