Simplify approving hosts

The list of waiting hosts opens the approval dialog instead of having its
own name input and buttons, so hosts are approved in one place. Removes
the limit on requests per minute, the limits on pending requests already
cap what an address can do.

Also updates text that still said the installer makes the requests.
This commit is contained in:
Danielv123 committed 2026-10-30 22:59:32 +01:00
1 parent 95422e6d21
commit a4894aae9d
8 files changed
+37 -168

No files matched your search

+3 -3
View File
@@ -255,7 +255,7 @@ function checkHostPairingRequest(req: Request, res: Response, needsRequestId: bo
return true;
}
// Request from an installer for a host to join the cluster.
// Request from a host for a host to join the cluster.
async function createHostPairing(req: Request, res: Response) {
if (!checkHostPairingRequest(req, res, false)) {
return;
@@ -299,7 +299,7 @@ async function createHostPairing(req: Request, res: Response) {
}
}
// Poll from an installer for the result of its request.
// Poll from a host for the result of its request.
function pollHostPairing(req: Request, res: Response) {
if (!checkHostPairingRequest(req, res, true)) {
return;
@@ -318,7 +318,7 @@ function pollHostPairing(req: Request, res: Response) {
}
}
// Cancel from an installer that stopped waiting.
// Cancel from a host that stopped waiting.
function cancelHostPairing(req: Request, res: Response) {
if (!checkHostPairingRequest(req, res, true)) {
return;