mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-07 09:20:06 +01:00
i18nService fix for none folder
This commit is contained in:
parent
c92b346e18
commit
fccaa5f8de
@ -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,
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user