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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user