mirror of
https://github.com/bitwarden/cli
synced 2025-12-28 05:53:15 +00:00
folder and collection templates
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import { FolderView } from 'jslib/models/view/folderView';
|
||||
|
||||
export class Folder {
|
||||
static template(): Folder {
|
||||
const req = new Folder();
|
||||
req.name = 'Folder name';
|
||||
return req;
|
||||
}
|
||||
|
||||
static toView(req: Folder, view = new FolderView()) {
|
||||
view.name = req.name;
|
||||
return view;
|
||||
|
||||
Reference in New Issue
Block a user