1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

[chore] Update jslib (#1277)

* [chore] Update jslib

* [bug] Correct value for system theme dropdown key

* [chore] Update jslib
This commit is contained in:
Addison Beck
2022-01-31 18:00:37 -05:00
committed by GitHub
parent c1ba54f646
commit 2b22a39d45
4 changed files with 12 additions and 6 deletions

2
jslib

Submodule jslib updated: e372bf242b...92a65b7b36

View File

@@ -135,7 +135,7 @@ export class SettingsComponent implements OnInit {
this.localeOptions = localeOptions;
this.themeOptions = [
{ name: i18nService.t("default"), value: null },
{ name: i18nService.t("default"), value: ThemeType.System },
{ name: i18nService.t("light"), value: ThemeType.Light },
{ name: i18nService.t("dark"), value: ThemeType.Dark },
{ name: "Nord", value: ThemeType.Nord },

View File

@@ -47,7 +47,9 @@ import { ThemeType } from "jslib-common/enums/themeType";
import { Account } from "../models/account";
import { AccountFactory } from "jslib-common/models/domain/account";
import { GlobalState } from "jslib-common/models/domain/globalState";
import { StateFactory } from "jslib-common/factories/stateFactory";
export function initFactory(
window: Window,
@@ -190,7 +192,7 @@ export function initFactory(
secureStorageService,
logService,
stateMigrationService,
new AccountFactory(Account)
new StateFactory(GlobalState, Account)
),
deps: [
StorageServiceAbstraction,

View File

@@ -22,7 +22,11 @@ import { NativeMessagingMain } from "./main/nativeMessaging.main";
import { StateService } from "jslib-common/services/state.service";
import { Account, AccountFactory } from "jslib-common/models/domain/account";
import { Account } from "./models/account";
import { GlobalState } from "jslib-common/models/domain/globalState";
import { StateFactory } from "jslib-common/factories/stateFactory";
export class Main {
logService: ElectronLogService;
@@ -86,7 +90,7 @@ export class Main {
null,
this.logService,
null,
new AccountFactory(Account)
new StateFactory(GlobalState, Account)
);
this.windowMain = new WindowMain(