Commit b99efc0f authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #18927 TIME 0:10 check if signed response is draf/not-send

parent a9ae217e
......@@ -15,6 +15,6 @@
<img src="assets/spinner.gif"/>
</div>
</app-root>
<script src="runtime-es2015.4ac42fef445445e6f3d0.js" type="module"></script><script src="runtime-es5.4ac42fef445445e6f3d0.js" nomodule defer></script><script src="polyfills-es5.8c2a86db22bc37211976.js" nomodule defer></script><script src="polyfills-es2015.f8f86766446f4344eec7.js" type="module"></script><script src="scripts.3f995a62571f9f668311.js" defer></script><script src="main-es2015.12543549da6e0dfc3fa3.js" type="module"></script><script src="main-es5.12543549da6e0dfc3fa3.js" nomodule defer></script></body>
<script src="runtime-es2015.4ac42fef445445e6f3d0.js" type="module"></script><script src="runtime-es5.4ac42fef445445e6f3d0.js" nomodule defer></script><script src="polyfills-es5.8c2a86db22bc37211976.js" nomodule defer></script><script src="polyfills-es2015.f8f86766446f4344eec7.js" type="module"></script><script src="scripts.3f995a62571f9f668311.js" defer></script><script src="main-es2015.dcf7a13da862d40cad0e.js" type="module"></script><script src="main-es5.dcf7a13da862d40cad0e.js" nomodule defer></script></body>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -986,10 +986,8 @@ export class MailEditorComponent implements OnInit, OnDestroy {
async openEmailAttach(type: string, attach: any): Promise<void> {
this.signedAttachId = null;
if (type === 'attachments') {
if (attach.status === 'SIGN') {
this.signedAttachId = attach.id;
await this.getSignedAttachment(this.signedAttachId);
}
this.signedAttachId = attach.id;
await this.getSignedAttachment(this.signedAttachId);
this.http.get(`../rest/attachments/${this.signedAttachId !== null ? this.signedAttachId : attach.id}/content?mode=base64`).pipe(
tap((data: any) => {
this.dialog.open(DocumentViewerModalComponent, { autoFocus: false, panelClass: 'maarch-full-height-modal', data: { title: `${attach.label}`, base64: data.encodedDocument, filename: data.filename } });
......@@ -1036,7 +1034,11 @@ export class MailEditorComponent implements OnInit, OnDestroy {
return new Promise((resolve) => {
this.http.get(`../rest/attachments/${id}`).pipe(
tap((data: any) => {
this.signedAttachId = data.signedResponse;
if (!this.functions.empty(data.signedResponse)) {
this.signedAttachId = data.signedResponse;
} else {
this.signedAttachId = null;
}
resolve(true);
}),
catchError((err: any) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment