1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

Allowed editing sends

This commit is contained in:
addison
2021-02-10 14:15:10 -05:00
parent 544ecbecdc
commit 12532f3cc4
5 changed files with 120 additions and 92 deletions

View File

@@ -28,5 +28,9 @@ export class AddEditComponent extends BaseAddEditComponent {
async refresh() {
const send = await this.loadSend();
this.send = await send.decrypt();
this.hasPassword = this.send.password != null && this.send.password.trim() !== '';
this.deletionDate = this.dateToString(this.send.deletionDate);
this.expirationDate = this.dateToString(this.send.expirationDate);
this.password = null;
}
}