Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: require explicit confirm before showing agent commands
rcourtman745e6b386b66
diff --git a/frontend-modern/src/components/Settings/DockerAgents.tsx b/frontend-modern/src/components/Settings/DockerAgents.tsxindex d6ea5a699f..b6ba722d7d 100644--- a/frontend-modern/src/components/Settings/DockerAgents.tsx+++ b/frontend-modern/src/components/Settings/DockerAgents.tsx@@ -240,7 +240,6 @@ const modalCommandProgress = createMemo(() => {setShowGenerateTokenModal(false);setNewTokenName('');setLatestRecord(record);- setStepTwoComplete(true);showTokenReveal({token,record,@@ -504,8 +503,8 @@ WantedBy=multi-user.target`;: 'border-blue-200 bg-blue-50 text-blue-800 dark:border-blue-800 dark:bg-blue-900/20 dark:text-blue-200'}`}>{stepTwoComplete()- ? 'Token ready. You can continue to the install command.'- : 'Stored token detected. Confirm to insert it into the install command.'}+ ? 'Token inserted. Proceed to the install command below.'+ : 'Stored token detected. Press confirm to insert it into the command.'}</div><buttontype="button"@@ -517,7 +516,7 @@ WantedBy=multi-user.target`;: 'bg-gray-900 text-white hover:bg-black dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white'}`}>- {stepTwoComplete() ? 'Token ready' : 'Use token in commands'}+ {stepTwoComplete() ? 'Token inserted' : 'Insert token into command'}</button></div></Show>@@ -527,7 +526,7 @@ WantedBy=multi-user.target`;<Show when={!requiresToken()}><div class="space-y-3"><div class="rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800 dark:border-amber-700 dark:bg-amber-900/30 dark:text-amber-200">- Tokens are optional on this Pulse instance. Confirm to continue to the install command.+ Tokens are optional on this Pulse instance. Confirm to generate commands without embedding a token.</div><buttontype="button"@@ -539,7 +538,7 @@ WantedBy=multi-user.target`;: 'bg-gray-900 text-white hover:bg-black dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white'}`}>- {stepTwoComplete() ? 'Confirmed' : 'Confirm and continue'}+ {stepTwoComplete() ? 'No token confirmed' : 'Confirm without token'}</button></div></Show>diff --git a/frontend-modern/src/components/Settings/HostAgents.tsx b/frontend-modern/src/components/Settings/HostAgents.tsxindex 1f7b5bff7d..f8c2d96ce7 100644--- a/frontend-modern/src/components/Settings/HostAgents.tsx+++ b/frontend-modern/src/components/Settings/HostAgents.tsx@@ -276,7 +276,6 @@ export const HostAgents: Component<HostAgentsProps> = (props) => {setShowGenerateTokenModal(false);setNewTokenName('');setLatestRecord(record);- setStepTwoComplete(true);showTokenReveal({token,record,@@ -464,8 +463,8 @@ export const HostAgents: Component<HostAgentsProps> = (props) => {: 'border-blue-200 bg-blue-50 text-blue-800 dark:border-blue-800 dark:bg-blue-900/20 dark:text-blue-200'}`}>{stepTwoComplete()- ? 'Token ready. You can continue to the commands.'- : 'Stored token detected. Confirm to insert it into the commands below.'}+ ? 'Token inserted. Proceed to the install commands below.'+ : 'Stored token detected. Press confirm to insert it into each command.'}</div><buttontype="button"@@ -477,7 +476,7 @@ export const HostAgents: Component<HostAgentsProps> = (props) => {: 'bg-gray-900 text-white hover:bg-black dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white'}`}>- {stepTwoComplete() ? 'Token ready' : 'Use token in commands'}+ {stepTwoComplete() ? 'Token inserted' : 'Insert token into commands'}</button></div></Show>@@ -487,7 +486,7 @@ export const HostAgents: Component<HostAgentsProps> = (props) => {<Show when={!requiresToken()}><div class="space-y-3"><div class="rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800 dark:border-amber-700 dark:bg-amber-900/30 dark:text-amber-200">- Tokens are optional on this Pulse instance. Confirm to continue to the install commands.+ Tokens are optional on this Pulse instance. Confirm to generate commands without embedding a token.</div><buttontype="button"@@ -499,7 +498,7 @@ export const HostAgents: Component<HostAgentsProps> = (props) => {: 'bg-gray-900 text-white hover:bg-black dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white'}`}>- {stepTwoComplete() ? 'Confirmed' : 'Confirm and continue'}+ {stepTwoComplete() ? 'No token confirmed' : 'Confirm without token'}</button></div></Show>