1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Merge pull request #367 from bitwarden/typescript

Typescript conversion
This commit is contained in:
Kyle Spearrin
2017-11-09 22:45:30 -05:00
committed by GitHub
178 changed files with 7362 additions and 41201 deletions

View File

@@ -1,4 +1,4 @@
angular
angular
.module('bit.vault')
.controller('vaultController', function ($scope, $rootScope, cipherService, folderService, $q, $state, $stateParams, toastr,
@@ -9,13 +9,13 @@
$scope.i18n = i18nService;
$scope.showFolderCounts = !utilsService.isEdge();
$scope.showOnlyFolderView = utilsService.isEdge();
$('#search').focus();
document.getElementById('search').focus();
var syncOnLoad = $stateParams.syncOnLoad;
if (syncOnLoad) {
$scope.$on('$viewContentLoaded', function () {
$timeout(function () {
syncService.fullSync(true, function () { });
syncService.fullSync(true);
}, 0);
});
}