Add receiver removal functionality to SenderEditor

Enhanced the `SenderEditorPage.razor` by injecting the `EnvelopeReceiverService` to manage envelope receivers. Updated the UI to include a remove button for each receiver, invoking the new `RemoveReceiverAsync` method. This method handles the deletion of receivers from both the UI and the server.

Modified `ReceiverDraft` and `SignatureFieldDraft` models to include `ReceiverId` and `ReceiverDraftId` for better tracking. Updated logic for identifying receivers without signature fields and creating receiver commands to use these new identifiers.

Added `DeleteAsync` method in `EnvelopeReceiverService.cs` to send DELETE requests for removing receivers. Updated `envelope-viewer.css` to style the new remove button with distinct appearance and hover effects.
This commit is contained in:
2026-10-27 19:02:22 +01:00
parent ff5582c9b5
commit fc5ad7ea3c
3 changed files with 112 additions and 16 deletions

View File

@@ -1236,6 +1236,17 @@ body.resizing {
border-color: var(--receiver-color, #7c3aed);
}
.sender-receiver-chip__remove-btn {
color: #b91c1c;
border-color: rgba(185, 28, 28, 0.35);
}
.sender-receiver-chip__remove-btn:hover {
background: #b91c1c;
color: #ffffff;
border-color: #b91c1c;
}
.sender-editor-action-inner {
flex-direction: row;
align-items: center;