mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
separated BrowserUtils from generic Utils
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import * as angular from 'angular';
|
||||
import { Folder } from '../../../../models/domain/folder';
|
||||
import UtilsService from '../../../../services/utils.service';
|
||||
import * as template from './edit-folder.component.html';
|
||||
|
||||
import { BrowserUtilsService } from '../../../../services/abstractions/browserUtils.service';
|
||||
|
||||
export class EditFolderController {
|
||||
$transition$: any;
|
||||
folderId: any;
|
||||
@@ -11,12 +12,12 @@ export class EditFolderController {
|
||||
folder: Folder;
|
||||
|
||||
constructor($scope: any, $stateParams: any, private folderService: any, private toastr: any, private $state: any,
|
||||
private SweetAlert: any, utilsService: UtilsService, private $analytics: any, private i18nService: any,
|
||||
$timeout: any) {
|
||||
private SweetAlert: any, browserUtilsService: BrowserUtilsService, private $analytics: any,
|
||||
private i18nService: any, $timeout: any) {
|
||||
this.i18n = i18nService;
|
||||
|
||||
$timeout(() => {
|
||||
utilsService.initListSectionItemListeners(document, angular);
|
||||
browserUtilsService.initListSectionItemListeners(document, angular);
|
||||
document.getElementById('name').focus();
|
||||
}, 500);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user