mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
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:
8 files changed
+37
-168
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user