1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

send password history to server

This commit is contained in:
Kyle Spearrin
2018-07-27 16:44:20 -04:00
parent 9df96a3288
commit dab9954887
16 changed files with 243 additions and 18 deletions

View File

@@ -7,6 +7,7 @@ import { CardView } from './cardView';
import { FieldView } from './fieldView';
import { IdentityView } from './identityView';
import { LoginView } from './loginView';
import { PasswordHistoryView } from './passwordHistoryView';
import { SecureNoteView } from './secureNoteView';
import { View } from './view';
@@ -27,6 +28,7 @@ export class CipherView implements View {
secureNote: SecureNoteView;
attachments: AttachmentView[];
fields: FieldView[];
passwordHistory: PasswordHistoryView[];
collectionIds: string[];
constructor(c?: Cipher) {
@@ -62,6 +64,10 @@ export class CipherView implements View {
return null;
}
get hasPasswordHistory(): boolean {
return this.passwordHistory && this.passwordHistory.length > 0;
}
get hasAttachments(): boolean {
return this.attachments && this.attachments.length > 0;
}