mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-11 14:48:46 +01:00
Specify type of send from templateType (#304)
* Specify type of send from templateType * Default to Text type send
This commit is contained in:
parent
1ed637e123
commit
0cbcdd6948
@ -18,7 +18,7 @@ export class SendResponse implements BaseResponse {
|
||||
const req = new SendResponse();
|
||||
req.name = 'Send name';
|
||||
req.notes = 'Some notes about this send.';
|
||||
req.type = SendType.Text;
|
||||
req.type = sendType === SendType.File ? SendType.File : SendType.Text;
|
||||
req.text = sendType === SendType.Text ? SendTextResponse.template() : null;
|
||||
req.file = sendType === SendType.File ? SendFileResponse.template() : null;
|
||||
req.maxAccessCount = null;
|
||||
|
Loading…
Reference in New Issue
Block a user