mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
* feat: add synced custom host monitoring panels * fix: preserve shared monitoring demand and complete terminal stats * fix: transfer queued monitoring prompts when a window closes * fix: keep reused hosts sampling while authentication is queued * docs: record monitoring acceptance evidence * fix: transfer pending monitoring auth after panel stop * fix: release monitor owners in direct SSH runtime * fix: keep worker monitoring sender compatibility * fix: include monitoring configuration in automatic sync * fix: disambiguate independent synced monitoring panel names * test: assert existing panel order after cloud merge * test: model browser locks and await monitoring state on Node 22
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import React from "react";
|
|
import { useI18n } from "../../application/i18n/I18nProvider";
|
|
import { useMonitorHostKeyVerification } from "../../application/state/useMonitorHostKeyVerification";
|
|
import { toHostKeyInfo } from "../../domain/hostKey";
|
|
import { Dialog, DialogContent, DialogTitle } from "../ui/dialog";
|
|
import { TerminalHostKeyVerification } from "../terminal/TerminalHostKeyVerification";
|
|
export function MonitorHostKeyDialog() {
|
|
const { t } = useI18n();
|
|
const { request, respond } = useMonitorHostKeyVerification();
|
|
return (
|
|
<Dialog open={!!request} onOpenChange={(open) => !open && respond(false)}>
|
|
<DialogContent hideCloseButton>
|
|
<DialogTitle className="sr-only">
|
|
{t("monitor.confirmHost")}
|
|
</DialogTitle>
|
|
{request && (
|
|
<TerminalHostKeyVerification
|
|
hostKeyInfo={toHostKeyInfo(request)}
|
|
showLogs={false}
|
|
progressLogs={[]}
|
|
onClose={() => respond(false)}
|
|
onContinue={() => respond(true)}
|
|
onAddAndContinue={() => respond(true, true)}
|
|
/>
|
|
)}
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
}
|