module console

This commit is contained in:
2026-03-06 22:57:44 +01:00
parent 4dc296edce
commit d21f476f7e
3 changed files with 11 additions and 17 deletions

View File

@@ -291,17 +291,11 @@
}
return;
}
const iframe = getActiveIframe();
const ok = trySendToIframe(iframe, commandTextarea.value.trim());
if (!ok) {
if (consoleNotice) {
consoleNotice.textContent = 'Aktive Konsole nicht steuerbar Befehl wird in neuer Konsole ausgeführt.';
consoleNotice.style.display = 'block';
}
submitOpen();
return;
if (consoleNotice) {
consoleNotice.textContent = 'Aktive Konsole kann nicht direkt gesteuert werden Befehl wird in neuer Konsole ausgeführt.';
consoleNotice.style.display = 'block';
}
if (consoleError) consoleError.style.display = 'none';
submitOpen();
});
}
}

View File

@@ -282,7 +282,7 @@ $runs = $pdo->query(
<div style="display:flex; gap:10px; flex-wrap:wrap;">
<button class="cta-button" type="button" data-open-console>Neue Konsole öffnen</button>
<button class="nav-link" type="button" data-run-command>Im Hintergrund ausführen</button>
<button class="nav-link" type="button" data-send-active>In aktiver Konsole ausführen</button>
<button class="nav-link" type="button" data-send-active>In neuer Konsole ausführen</button>
</div>
</form>
<div class="muted" style="margin-top:.5rem;">