mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
[Soft Delete] jslib updates for new API updates
New API methods and cipher Deleted Date property, plus search expansion to toggle on deleted flag.
This commit is contained in:
@@ -31,6 +31,7 @@ export class CipherView implements View {
|
||||
passwordHistory: PasswordHistoryView[] = null;
|
||||
collectionIds: string[] = null;
|
||||
revisionDate: Date = null;
|
||||
deletedDate: Date = null;
|
||||
|
||||
constructor(c?: Cipher) {
|
||||
if (!c) {
|
||||
@@ -47,6 +48,7 @@ export class CipherView implements View {
|
||||
this.localData = c.localData;
|
||||
this.collectionIds = c.collectionIds;
|
||||
this.revisionDate = c.revisionDate;
|
||||
this.deletedDate = c.deletedDate;
|
||||
}
|
||||
|
||||
get subTitle(): string {
|
||||
@@ -97,4 +99,8 @@ export class CipherView implements View {
|
||||
}
|
||||
return this.login.passwordRevisionDate;
|
||||
}
|
||||
|
||||
get isDeleted(): boolean {
|
||||
return this.deletedDate != null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user