kill all process in hvnc button
This commit is contained in:
@@ -55,6 +55,7 @@ import { checkFeatureAccess } from "./feature-gate.js";
|
||||
const startBtn = document.getElementById("startBtn");
|
||||
const stopBtn = document.getElementById("stopBtn");
|
||||
const commandsBtn = document.getElementById("commandsBtn");
|
||||
const killAllBtn = document.getElementById("killAllBtn");
|
||||
const fullscreenBtn = document.getElementById("fullscreenBtn");
|
||||
const mouseCtrl = document.getElementById("mouseCtrl");
|
||||
const kbdCtrl = document.getElementById("kbdCtrl");
|
||||
@@ -593,6 +594,11 @@ import { checkFeatureAccess } from "./feature-gate.js";
|
||||
setStreamState("stopping", "Stopping stream");
|
||||
sendCmd("hvnc_stop", {});
|
||||
});
|
||||
if (killAllBtn) {
|
||||
killAllBtn.addEventListener("click", function () {
|
||||
sendCmd("hvnc_kill_all", {});
|
||||
});
|
||||
}
|
||||
fullscreenBtn.addEventListener("click", function () {
|
||||
if (canvasContainer.requestFullscreen) {
|
||||
canvasContainer.requestFullscreen();
|
||||
|
||||
@@ -70,6 +70,9 @@
|
||||
<button id="commandsBtn" class="button ghost">
|
||||
<i class="fa-solid fa-terminal"></i><span>Commands</span>
|
||||
</button>
|
||||
<button id="killAllBtn" class="button ghost" title="Kill all programs running on the hidden desktop">
|
||||
<i class="fa-solid fa-skull"></i><span>Kill All</span>
|
||||
</button>
|
||||
<button id="fullscreenBtn" class="button ghost">
|
||||
<i class="fa-solid fa-expand"></i><span>Fullscreen</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user