diff --git a/diagnostic/index.html b/diagnostic/index.html index a09d2c0..4dadb76 100644 --- a/diagnostic/index.html +++ b/diagnostic/index.html @@ -132,12 +132,27 @@
⚠️ - - docker system prune -a --volumes -f - - + +
+ +

ARIA Diagnostic

@@ -2205,19 +2220,17 @@ banner.style.display = 'block'; } - function copyDiskCmd() { - const cmd = document.getElementById('disk-banner-cmd').textContent.trim(); + function copyDiskCmd(variant) { + const cmd = variant === 'aggressive' + ? 'docker system prune -a --volumes -f' + : 'docker builder prune -a -f && docker image prune -a -f'; navigator.clipboard.writeText(cmd).then(() => { const btn = event.target; const old = btn.textContent; btn.textContent = 'Kopiert!'; setTimeout(() => { btn.textContent = old; }, 1500); }).catch(() => { - // Fallback: selektieren - const range = document.createRange(); - range.selectNode(document.getElementById('disk-banner-cmd')); - window.getSelection().removeAllRanges(); - window.getSelection().addRange(range); + alert('Kopieren fehlgeschlagen — Befehl: ' + cmd); }); }