1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

send removePasswordWithServer and model updates (#242)

This commit is contained in:
Kyle Spearrin
2020-12-30 16:23:52 -05:00
committed by GitHub
parent 1420082348
commit afa01f67f4
3 changed files with 26 additions and 1 deletions

View File

@@ -46,4 +46,22 @@ export class SendView implements View {
get urlB64Key(): string {
return Utils.fromBufferToUrlB64(this.key);
}
get maxAccessCountReached(): boolean {
if (this.maxAccessCount == null) {
return false;
}
return this.accessCount >= this.maxAccessCount;
}
get expired(): boolean {
if (this.expirationDate == null) {
return false;
}
return this.expirationDate <= new Date();
}
get pendingDelete(): boolean {
return this.deletionDate <= new Date();
}
}