diff --git a/public/pdf.html b/public/pdf.html index 3907658..a3491f0 100644 --- a/public/pdf.html +++ b/public/pdf.html @@ -1383,9 +1383,13 @@ document.querySelectorAll('.op-panel').forEach(p => p.classList.remove('active')); const panel = document.getElementById('panel-' + tab.dataset.op); if (panel) panel.classList.add('active'); + // Reset result and progress stepResult.style.display = 'none'; - actionWrap.style.display = 'block'; + downloadLink.style.display = 'none'; progressWrap.style.display = 'none'; + // Hide "Выполнить" for tabs with inline actions (pages have own buttons) + const noMainButton = ['pages']; + actionWrap.style.display = noMainButton.includes(tab.dataset.op) ? 'none' : 'block'; }); });