mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 10:43:35 +00:00
Move to libs
This commit is contained in:
19
libs/common/src/models/view/folderView.ts
Normal file
19
libs/common/src/models/view/folderView.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Folder } from "../domain/folder";
|
||||
import { ITreeNodeObject } from "../domain/treeNode";
|
||||
|
||||
import { View } from "./view";
|
||||
|
||||
export class FolderView implements View, ITreeNodeObject {
|
||||
id: string = null;
|
||||
name: string = null;
|
||||
revisionDate: Date = null;
|
||||
|
||||
constructor(f?: Folder) {
|
||||
if (!f) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.id = f.id;
|
||||
this.revisionDate = f.revisionDate;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user