mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
apply collection and folder views
This commit is contained in:
18
src/models/view/collectionView.ts
Normal file
18
src/models/view/collectionView.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { View } from './view';
|
||||
|
||||
import { Collection } from '../domain/collection';
|
||||
|
||||
export class CollectionView implements View {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
name: string;
|
||||
|
||||
constructor(c?: Collection) {
|
||||
if (!c) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.id = c.id;
|
||||
this.organizationId = c.organizationId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user