1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 03:23:50 +00:00

sync folders and ciphers. fix dates

This commit is contained in:
Kyle Spearrin
2018-08-20 16:01:26 -04:00
parent ddee5908f1
commit d0c51bacfd
15 changed files with 127 additions and 49 deletions

View File

@@ -8,6 +8,7 @@ import Domain from './domain';
export class Folder extends Domain {
id: string;
name: CipherString;
revisionDate: Date;
constructor(obj?: FolderData, alreadyEncrypted: boolean = false) {
super();
@@ -19,6 +20,8 @@ export class Folder extends Domain {
id: null,
name: null,
}, alreadyEncrypted, ['id']);
this.revisionDate = obj.revisionDate != null ? new Date(obj.revisionDate) : null;
}
decrypt(): Promise<FolderView> {