From 7001d736865c84bd76bd0cea126efb351c17a798 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Fri, 2 Apr 2021 06:42:14 +1000 Subject: [PATCH] Add hideEmail to sendResponse model and template (#273) --- src/models/response/sendResponse.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/response/sendResponse.ts b/src/models/response/sendResponse.ts index da2d536ae1..28cb9d6ceb 100644 --- a/src/models/response/sendResponse.ts +++ b/src/models/response/sendResponse.ts @@ -26,6 +26,7 @@ export class SendResponse implements BaseResponse { req.expirationDate = null; req.password = null; req.disabled = false; + req.hideEmail = false; return req; } @@ -49,6 +50,7 @@ export class SendResponse implements BaseResponse { view.expirationDate = send.expirationDate; view.password = send.password; view.disabled = send.disabled; + view.hideEmail = send.hideEmail; return view; } @@ -85,6 +87,7 @@ export class SendResponse implements BaseResponse { password: string; passwordSet: boolean; disabled: boolean; + hideEmail: boolean; constructor(o?: SendView, webVaultUrl?: string) { if (o == null) { @@ -110,6 +113,7 @@ export class SendResponse implements BaseResponse { this.expirationDate = o.expirationDate; this.passwordSet = o.password != null; this.disabled = o.disabled; + this.hideEmail = o.hideEmail; if (o.type === SendType.Text && o.text != null) { this.text = new SendTextResponse(o.text);