Update secure-gateway-setup.tsx

This commit is contained in:
MacRimi
2026-03-14 22:50:07 +01:00
parent ff168937aa
commit fdc4253117

View File

@@ -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"