Add confirmation popup for clearing signature fields

Added a confirmation popup to `SenderEditorPage.razor` for clearing all signature fields, requiring user confirmation before proceeding. Updated resource files (`Resource.de-DE.resx`, `Resource.en-US.resx`, `Resource.fr-FR.resx`) with localized confirmation messages. Modified the "Remove all signature fields" button to trigger the popup instead of directly invoking the clear action.

Introduced a new `_clearFieldsConfirmVisible` variable to manage popup visibility. Updated the `ClearAllFieldsAsync` method to close the popup before clearing fields. Added new CSS styles in `envelope-viewer.css` to style the confirmation popup and its elements.
This commit is contained in:
2026-11-10 21:00:36 +01:00
parent f6dc454193
commit e1f24249a9
5 changed files with 47 additions and 1 deletions

View File

@@ -2085,3 +2085,21 @@ body.resizing {
[data-sf-theme="blazing-dark"] .pdf-text-layer ::-moz-selection {
background: rgba(99, 102, 241, 0.35);
}
/* ── Confirm popup (headerless, footerless) ── */
.sender-confirm-popup {
padding: 0.25rem 0.25rem 0.5rem;
}
.sender-confirm-popup__message {
margin: 0 0 1.25rem;
font-size: 0.9rem;
line-height: 1.5;
color: var(--bs-body-color, #e2e8f0);
}
.sender-confirm-popup__actions {
display: flex;
gap: 0.5rem;
justify-content: flex-end;
}