1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-09 09:40:07 +01:00

i18nService fix for none folder

This commit is contained in:
Kyle Spearrin 2017-07-11 13:05:56 -04:00
parent c92b346e18
commit fccaa5f8de
2 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ var bg_apiService = new ApiService(bg_tokenService, bg_appIdService, bg_utilsSer
var bg_userService = new UserService(bg_tokenService, bg_apiService, bg_cryptoService); var bg_userService = new UserService(bg_tokenService, bg_apiService, bg_cryptoService);
var bg_settingsService = new SettingsService(bg_userService); var bg_settingsService = new SettingsService(bg_userService);
var bg_loginService = new LoginService(bg_cryptoService, bg_userService, bg_apiService, bg_settingsService); var bg_loginService = new LoginService(bg_cryptoService, bg_userService, bg_apiService, bg_settingsService);
var bg_folderService = new FolderService(bg_cryptoService, bg_userService, bg_apiService); var bg_folderService = new FolderService(bg_cryptoService, bg_userService, bg_apiService, bg_i18nService);
var bg_lockService = new LockService(bg_constantsService, bg_cryptoService, bg_folderService, bg_loginService, setIcon, var bg_lockService = new LockService(bg_constantsService, bg_cryptoService, bg_folderService, bg_loginService, setIcon,
refreshBadgeAndMenu); refreshBadgeAndMenu);
var bg_syncService = new SyncService(bg_loginService, bg_folderService, bg_userService, bg_apiService, bg_settingsService, var bg_syncService = new SyncService(bg_loginService, bg_folderService, bg_userService, bg_apiService, bg_settingsService,

View File

@ -1,7 +1,8 @@
function FolderService(cryptoService, userService, apiService) { function FolderService(cryptoService, userService, apiService, i18nService) {
this.cryptoService = cryptoService; this.cryptoService = cryptoService;
this.userService = userService; this.userService = userService;
this.apiService = apiService; this.apiService = apiService;
this.i18nService = i18nService;
this.decryptedFolderCache = null; this.decryptedFolderCache = null;
initFolderService(); initFolderService();
@ -82,7 +83,7 @@ function initFolderService() {
var promises = []; var promises = [];
var decFolders = [{ var decFolders = [{
id: null, id: null,
name: i18nService.noneFolder name: self.i18nService.noneFolder
}]; }];
self.getAll(function (folders) { self.getAll(function (folders) {
for (var i = 0; i < folders.length; i++) { for (var i = 0; i < folders.length; i++) {