From 286895ff66eefaccc80a98a6aa0ef8544235a068 Mon Sep 17 00:00:00 2001 From: jelveh Date: Thu, 12 Feb 2026 16:45:23 -0800 Subject: [PATCH] Disable publish worker UI badge updates Temporarily comment out code in UIWindowPublishWorker that updates item UI after publishing: hiding the lines that show the item website badge, show per-item website-url badges, and set the data-website_url attribute. This prevents the publish worker from automatically modifying those DOM elements/attributes (kept commented for potential rollback or debugging). --- src/gui/src/UI/UIWindowPublishWorker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/src/UI/UIWindowPublishWorker.js b/src/gui/src/UI/UIWindowPublishWorker.js index 14ffbc6e5..2084799bc 100644 --- a/src/gui/src/UI/UIWindowPublishWorker.js +++ b/src/gui/src/UI/UIWindowPublishWorker.js @@ -111,15 +111,15 @@ async function UIWindowPublishWorker (target_dir_uid, target_dir_name, target_di $(el_window).find('.publishWorker-published-link').attr('href', url); $(el_window).find('.publishWorker-published-link').text(url); $(el_window).find('.window-publishWorker-success').show(100); - $(`.item[data-uid="${target_dir_uid}"] .item-has-website-badge`).show(); + // $(`.item[data-uid="${target_dir_uid}"] .item-has-website-badge`).show(); }); // find all items whose path starts with target_dir_path $(`.item[data-path^="${target_dir_path}/"]`).each(function () { // show the link badge - $(this).find('.item-has-website-url-badge').show(); + // $(this).find('.item-has-website-url-badge').show(); // update item's website_url attribute - $(this).attr('data-website_url', url + $(this).attr('data-path').substring(target_dir_path.length)); + // $(this).attr('data-website_url', url + $(this).attr('data-path').substring(target_dir_path.length)); }); }).catch((err) => { let errorHtml;