mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
Add hideEmail to sendResponse model and template (#273)
This commit is contained in:
@@ -26,6 +26,7 @@ export class SendResponse implements BaseResponse {
|
|||||||
req.expirationDate = null;
|
req.expirationDate = null;
|
||||||
req.password = null;
|
req.password = null;
|
||||||
req.disabled = false;
|
req.disabled = false;
|
||||||
|
req.hideEmail = false;
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,6 +50,7 @@ export class SendResponse implements BaseResponse {
|
|||||||
view.expirationDate = send.expirationDate;
|
view.expirationDate = send.expirationDate;
|
||||||
view.password = send.password;
|
view.password = send.password;
|
||||||
view.disabled = send.disabled;
|
view.disabled = send.disabled;
|
||||||
|
view.hideEmail = send.hideEmail;
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,6 +87,7 @@ export class SendResponse implements BaseResponse {
|
|||||||
password: string;
|
password: string;
|
||||||
passwordSet: boolean;
|
passwordSet: boolean;
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
|
hideEmail: boolean;
|
||||||
|
|
||||||
constructor(o?: SendView, webVaultUrl?: string) {
|
constructor(o?: SendView, webVaultUrl?: string) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
@@ -110,6 +113,7 @@ export class SendResponse implements BaseResponse {
|
|||||||
this.expirationDate = o.expirationDate;
|
this.expirationDate = o.expirationDate;
|
||||||
this.passwordSet = o.password != null;
|
this.passwordSet = o.password != null;
|
||||||
this.disabled = o.disabled;
|
this.disabled = o.disabled;
|
||||||
|
this.hideEmail = o.hideEmail;
|
||||||
|
|
||||||
if (o.type === SendType.Text && o.text != null) {
|
if (o.type === SendType.Text && o.text != null) {
|
||||||
this.text = new SendTextResponse(o.text);
|
this.text = new SendTextResponse(o.text);
|
||||||
|
|||||||
Reference in New Issue
Block a user