mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
apply collection and folder views
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { FolderData } from '../data/folderData';
|
||||
|
||||
import { FolderView } from '../view/folderView';
|
||||
|
||||
import { CipherString } from './cipherString';
|
||||
import Domain from './domain';
|
||||
|
||||
@@ -19,12 +21,8 @@ export class Folder extends Domain {
|
||||
}, alreadyEncrypted, ['id']);
|
||||
}
|
||||
|
||||
decrypt(): Promise<any> {
|
||||
const model = {
|
||||
id: this.id,
|
||||
};
|
||||
|
||||
return this.decryptObj(model, {
|
||||
decrypt(): Promise<FolderView> {
|
||||
return this.decryptObj(new FolderView(this), {
|
||||
name: null,
|
||||
}, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user