Aktualisiert, um EnvelopeReceiverDto anstelle von EnvelopeResponse zu verwenden
This commit is contained in:
@@ -10,7 +10,7 @@ const ActionType = {
|
||||
}
|
||||
|
||||
class App {
|
||||
constructor(container, envelopeKey, envelopeResponse, documentBytes, licenseKey) {
|
||||
constructor(container, envelopeKey, envelopeReceiver, documentBytes, licenseKey) {
|
||||
this.container = container
|
||||
this.envelopeKey = envelopeKey
|
||||
|
||||
@@ -21,8 +21,8 @@ class App {
|
||||
this.Instance = null
|
||||
this.currentDocument = null
|
||||
this.currentReceiver = null
|
||||
this.signatureCount = 0
|
||||
this.envelopeResponse = envelopeResponse;
|
||||
this.signatureCount = 0;
|
||||
this.envelopeReceiver = envelopeReceiver;
|
||||
this.documentBytes = documentBytes;
|
||||
this.licenseKey = licenseKey;
|
||||
}
|
||||
@@ -31,8 +31,8 @@ class App {
|
||||
// and will trigger loading of the Editor Interface
|
||||
async init() {
|
||||
// Load the envelope from the database
|
||||
this.currentDocument = this.envelopeResponse.envelope.documents[0]
|
||||
this.currentReceiver = this.envelopeResponse.receiver
|
||||
this.currentDocument = this.envelopeReceiver.envelope.documents[0]
|
||||
this.currentReceiver = this.envelopeReceiver.receiver
|
||||
|
||||
// Load the document from the filestore
|
||||
const documentResponse = this.documentBytes
|
||||
@@ -109,7 +109,7 @@ class App {
|
||||
const timestamp = new Date()
|
||||
|
||||
const imageUrl = await this.Annotation.createAnnotationFrameBlob(
|
||||
this.currentReceiver.name,
|
||||
this.envelopeReceiver.name,
|
||||
this.currentReceiver.signature,
|
||||
timestamp,
|
||||
width,
|
||||
|
||||
Reference in New Issue
Block a user