fix: expose share action on webvnc
Some checks are pending
CI / Go (push) Waiting to run
CI / Worker (push) Waiting to run
CI / Docs (push) Waiting to run
CI / Release Check (push) Waiting to run
Pages / Deploy docs (push) Waiting to run

This commit is contained in:
Peter Steinberger 2026-05-07 22:42:02 +01:00
parent edd5fae230
commit 0431fd3bb6
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

@ -528,6 +528,7 @@ export function portalVNC(lease: LeaseRecord): Response {
<button id="vnc-paste" class="icon-btn" type="button" title="paste clipboard" aria-label="paste clipboard">${pasteIcon}</button>
<button id="vnc-reconnect" class="icon-btn" type="button" title="reconnect" aria-label="reconnect">${reconnectIcon}</button>
<button id="vnc-fullscreen" class="icon-btn" type="button" title="fullscreen" aria-label="toggle fullscreen">${fullscreenIcon}</button>
<a class="button secondary" href="/portal/leases/${encodeURIComponent(lease.id)}/share">share</a>
<a class="button secondary" href="/portal">leases</a>
<a class="button secondary" href="/portal/logout">log out</a>
`,

View File

@ -1656,6 +1656,7 @@ describe("fleet lease identity and idle", () => {
expect(pageBody).toContain("WebVNC blue-lobster");
expect(pageBody).toContain("function scheduleRetry");
expect(pageBody).toContain("/portal/leases/cbx_000000000001/vnc/status");
expect(pageBody).toContain("/portal/leases/cbx_000000000001/share");
expect(pageBody).toContain("vnc-copy-remote");
expect(pageBody).toContain("vnc-paste");
expect(pageBody).toContain("vnc-copy");