From fccaa5f8de0c95fa054798a88e73f591590c1038 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 11 Jul 2017 13:05:56 -0400 Subject: [PATCH] i18nService fix for none folder --- src/background.js | 2 +- src/services/folderService.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/background.js b/src/background.js index be23191a40..ed31b4d1b5 100644 --- a/src/background.js +++ b/src/background.js @@ -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_settingsService = new SettingsService(bg_userService); 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, refreshBadgeAndMenu); var bg_syncService = new SyncService(bg_loginService, bg_folderService, bg_userService, bg_apiService, bg_settingsService, diff --git a/src/services/folderService.js b/src/services/folderService.js index efbc5cd856..09e575d578 100644 --- a/src/services/folderService.js +++ b/src/services/folderService.js @@ -1,7 +1,8 @@ -function FolderService(cryptoService, userService, apiService) { +function FolderService(cryptoService, userService, apiService, i18nService) { this.cryptoService = cryptoService; this.userService = userService; this.apiService = apiService; + this.i18nService = i18nService; this.decryptedFolderCache = null; initFolderService(); @@ -82,7 +83,7 @@ function initFolderService() { var promises = []; var decFolders = [{ id: null, - name: i18nService.noneFolder + name: self.i18nService.noneFolder }]; self.getAll(function (folders) { for (var i = 0; i < folders.length; i++) {