1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

finished CRUD operations for Send

This commit is contained in:
addison
2021-02-16 11:52:23 -05:00
parent 12532f3cc4
commit 1290ff2c40
7 changed files with 230 additions and 91 deletions

View File

@@ -28,9 +28,14 @@ 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;
}
cancel() {
this.onCancelled.emit(this.send);
}
}