mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
fix send password input (#11208)
This commit is contained in:
parent
d92b2cbea2
commit
8507097fe7
@ -102,7 +102,7 @@ export class SendOptionsComponent implements OnInit {
|
|||||||
this.sendOptionsForm.patchValue({
|
this.sendOptionsForm.patchValue({
|
||||||
maxAccessCount: this.sendFormContainer.originalSendView.maxAccessCount,
|
maxAccessCount: this.sendFormContainer.originalSendView.maxAccessCount,
|
||||||
accessCount: this.sendFormContainer.originalSendView.accessCount,
|
accessCount: this.sendFormContainer.originalSendView.accessCount,
|
||||||
password: this.sendFormContainer.originalSendView.password,
|
password: null,
|
||||||
hideEmail: this.sendFormContainer.originalSendView.hideEmail,
|
hideEmail: this.sendFormContainer.originalSendView.hideEmail,
|
||||||
notes: this.sendFormContainer.originalSendView.notes,
|
notes: this.sendFormContainer.originalSendView.notes,
|
||||||
});
|
});
|
||||||
|
@ -16,6 +16,7 @@ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|||||||
import { FormBuilder, ReactiveFormsModule } from "@angular/forms";
|
import { FormBuilder, ReactiveFormsModule } from "@angular/forms";
|
||||||
|
|
||||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { SendType } from "@bitwarden/common/tools/send/enums/send-type";
|
import { SendType } from "@bitwarden/common/tools/send/enums/send-type";
|
||||||
import { SendView } from "@bitwarden/common/tools/send/models/view/send.view";
|
import { SendView } from "@bitwarden/common/tools/send/models/view/send.view";
|
||||||
import {
|
import {
|
||||||
@ -199,6 +200,10 @@ export class SendFormComponent implements AfterViewInit, OnInit, OnChanges, Send
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Utils.isNullOrWhitespace(this.updatedSendView.password)) {
|
||||||
|
this.updatedSendView.password = null;
|
||||||
|
}
|
||||||
|
|
||||||
await this.addEditFormService.saveSend(this.updatedSendView, this.file, this.config);
|
await this.addEditFormService.saveSend(this.updatedSendView, this.file, this.config);
|
||||||
|
|
||||||
this.toastService.showToast({
|
this.toastService.showToast({
|
||||||
|
Loading…
Reference in New Issue
Block a user