Refactor to use SignatureDto and SignatureService
Replaced AnnotationDto and AnnotationService with SignatureDto and SignatureService for handling signature data. Marked AnnotationDto and AnnotationService as obsolete. Added the SignatureDto class to represent signature data and introduced the SignatureService class to fetch signature data from the API. Updated EnvelopeViewer.razor to use SignatureService, replacing AnnotationService, and added a debug log for retrieved signatures. Performed general refactoring to align with the new signature data model and functionality.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
@inject IOptions<ApiOptions> AppOptions
|
||||
@inject IOptions<PdfViewerOptions> PdfViewerOptions
|
||||
@inject IJSRuntime JSRuntime
|
||||
@inject AnnotationService AnnotService
|
||||
@inject SignatureService SignatureService
|
||||
@implements IAsyncDisposable
|
||||
|
||||
<link href="_content/DevExpress.Blazor.Themes/blazing-berry.bs5.min.css" rel="stylesheet" />
|
||||
@@ -212,7 +212,9 @@ protected override async Task OnInitializedAsync() {
|
||||
_errorMessage = $"Dokument konnte nicht geladen werden. HTTP Status: {statusCode}";
|
||||
}
|
||||
|
||||
var annots = await AnnotService.GetAnnotationsAsync(EnvelopeKey);
|
||||
var signatures = await SignatureService.GetAsync(EnvelopeKey);
|
||||
|
||||
await JSRuntime.InvokeVoidAsync("console.log", signatures);
|
||||
|
||||
} catch (Exception ex) {
|
||||
_errorMessage = $"Fehler: {ex.Message}";
|
||||
|
||||
Reference in New Issue
Block a user