mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-05-01 11:56:21 +00:00
Update secure-gateway-setup.tsx
This commit is contained in:
@@ -714,19 +714,30 @@ export function SecureGatewaySetup() {
|
|||||||
{/* Action buttons */}
|
{/* Action buttons */}
|
||||||
<div className="flex flex-wrap gap-2">
|
<div className="flex flex-wrap gap-2">
|
||||||
{isRunning ? (
|
{isRunning ? (
|
||||||
<Button
|
<>
|
||||||
size="sm"
|
<Button
|
||||||
variant="outline"
|
size="sm"
|
||||||
onClick={() => handleAction("stop")}
|
variant="outline"
|
||||||
disabled={actionLoading !== null}
|
onClick={() => handleAction("stop")}
|
||||||
>
|
disabled={actionLoading !== null}
|
||||||
{actionLoading === "stop" ? <Loader2 className="h-4 w-4 animate-spin" /> : <Square className="h-4 w-4 mr-1" />}
|
>
|
||||||
Stop
|
{actionLoading === "stop" ? <Loader2 className="h-4 w-4 animate-spin" /> : <Square className="h-4 w-4 mr-1" />}
|
||||||
</Button>
|
Stop
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
size="sm"
|
||||||
|
variant="outline"
|
||||||
|
onClick={() => handleAction("restart")}
|
||||||
|
disabled={actionLoading !== null}
|
||||||
|
>
|
||||||
|
{actionLoading === "restart" ? <Loader2 className="h-4 w-4 animate-spin" /> : <RotateCw className="h-4 w-4 mr-1" />}
|
||||||
|
Restart
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="outline"
|
className="bg-green-600 hover:bg-green-700 text-white"
|
||||||
onClick={() => handleAction("start")}
|
onClick={() => handleAction("start")}
|
||||||
disabled={actionLoading !== null}
|
disabled={actionLoading !== null}
|
||||||
>
|
>
|
||||||
@@ -734,15 +745,6 @@ export function SecureGatewaySetup() {
|
|||||||
Start
|
Start
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<Button
|
|
||||||
size="sm"
|
|
||||||
variant="outline"
|
|
||||||
onClick={() => handleAction("restart")}
|
|
||||||
disabled={actionLoading !== null}
|
|
||||||
>
|
|
||||||
{actionLoading === "restart" ? <Loader2 className="h-4 w-4 animate-spin" /> : <RotateCw className="h-4 w-4 mr-1" />}
|
|
||||||
Restart
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
Reference in New Issue
Block a user