import { html, nothing } from "lit" ;
import { t } from "../../i18n/index.ts" ;
import type { AppViewState } from "../app-view-state.ts" ;
export function renderGatewayUrlConfirmation(state: AppViewState) {
const { pendingGatewayUrl } = state;
if (!pendingGatewayUrl) {
return nothing;
}
return html`
<div class ="exec-approval-overlay" role="dialog" aria-modal="true" aria-live="polite" >
<div class ="exec-approval-card" >
<div class ="exec-approval-header" >
<div>
<div class ="exec-approval-title" >${t("channels.gatewayUrlConfirmation.title" )}</div>
<div class ="exec-approval-sub" >${t("channels.gatewayUrlConfirmation.subtitle" )}</div>
</div>
</div>
<div class ="exec-approval-command mono" >${pendingGatewayUrl}</div>
<div class ="callout danger" style="margin-top: 12px;" >
${t("channels.gatewayUrlConfirmation.warning" )}
</div>
<div class ="exec-approval-actions" >
<button class ="btn primary" @click=${() => state.handleGatewayUrlConfirm()}>
${t("common.confirm" )}
</button>
<button class ="btn" @click=${() => state.handleGatewayUrlCancel()}>
${t("common.cancel" )}
</button>
</div>
</div>
</div>
`;
}
Messung V0.5 in Prozent C=99 H=98 G=98
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland