From 4b94de7e0cbfd207bd0a7973e0b15d56ba3fc56b Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 16 Feb 2026 13:20:34 +0100 Subject: [PATCH] UI - Browser Steps - First step was missing Clear / Remove / Pic buttons --- changedetectionio/static/js/browser-steps.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/changedetectionio/static/js/browser-steps.js b/changedetectionio/static/js/browser-steps.js index d0acc7d3..d77bc181 100644 --- a/changedetectionio/static/js/browser-steps.js +++ b/changedetectionio/static/js/browser-steps.js @@ -360,16 +360,13 @@ $(document).ready(function () { // Add the extra buttons to the steps $('ul#browser_steps li').each(function (i) { var s = '
' + 'Apply '; - if (i > 0) { - // The first step never gets these (Goto-site) - s += `Clear ` + - `Remove`; + s += `Clear ` + + `Remove`; - // if a screenshot is available - if (browser_steps_available_screenshots.includes(i.toString())) { - var d = (browser_steps_last_error_step === i+1) ? 'before' : 'after'; - s += ` Pic `; - } + // if a screenshot is available + if (browser_steps_available_screenshots.includes(i.toString())) { + var d = (browser_steps_last_error_step === i+1) ? 'before' : 'after'; + s += ` Pic `; } s += '
'; $(this).append(s)