1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-03 13:33:32 +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:
Matt Gibson 2021-05-13 14:57:08 -05:00 committed by GitHub
parent 1ed637e123
commit 0cbcdd6948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;