1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

convert request/response models to jslib

This commit is contained in:
Kyle Spearrin
2018-01-08 14:45:34 -05:00
parent 5de4aad525
commit a78b8ec79c
38 changed files with 74 additions and 733 deletions

View File

@@ -1,8 +1,7 @@
import * as angular from 'angular';
import { Folder } from '../../../../models/domain/folder';
import * as template from './add-folder.component.html';
import { Abstractions } from '@bitwarden/jslib';
import { Abstractions, Domain } from '@bitwarden/jslib';
export class AddFolderController {
savePromise: any;
@@ -29,7 +28,7 @@ export class AddFolderController {
}
this.savePromise = this.folderService.encrypt(model).then((folderModel: any) => {
const folder = new Folder(folderModel, true);
const folder = new Domain.Folder(folderModel, true);
return this.folderService.saveWithServer(folder);
}).then((folder: any) => {
this.$analytics.eventTrack('Added Folder');