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

import ts through node_modules alias

This commit is contained in:
Kyle Spearrin
2018-01-09 14:26:20 -05:00
parent e165b5cc70
commit f51bebd99a
49 changed files with 515 additions and 322 deletions

View File

@@ -1,7 +1,9 @@
import * as angular from 'angular';
import * as template from './add-folder.component.html';
import { Abstractions, Domain } from '@bitwarden/jslib';
import { Folder } from 'jslib/models/domain/';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
export class AddFolderController {
savePromise: any;
@@ -9,7 +11,7 @@ export class AddFolderController {
i18n: any;
constructor(private folderService: any, private $state: any, private toastr: any,
platformUtilsService: Abstractions.PlatformUtilsService, private $analytics: any, private i18nService: any,
platformUtilsService: PlatformUtilsService, private $analytics: any, private i18nService: any,
$timeout: any) {
$timeout(() => {
platformUtilsService.initListSectionItemListeners(document, angular);
@@ -28,7 +30,7 @@ export class AddFolderController {
}
this.savePromise = this.folderService.encrypt(model).then((folderModel: any) => {
const folder = new Domain.Folder(folderModel, true);
const folder = new Folder(folderModel, true);
return this.folderService.saveWithServer(folder);
}).then((folder: any) => {
this.$analytics.eventTrack('Added Folder');