fix: CB-2243 settings

This commit is contained in:
Wroud
2022-07-28 15:22:51 +03:00
parent 36cbbcfa17
commit 3c29ff80cb
3 changed files with 4 additions and 4 deletions
@@ -43,7 +43,7 @@ export class LocalizationService extends Bootstrap {
}
get defaultLanguage(): string {
if (this.pluginSettings.getValue('defaultLanguage')) {
if (this.pluginSettings.isValueDefault('defaultLanguage')) {
return this.deprecatedPluginSettings.getValue('defaultLanguage');
}
@@ -35,7 +35,7 @@ const equalConfigA = {
'core.user': {
defaultTheme: testValueA,
} as IThemeSettings,
plugin: {
core: {
theming: {
defaultTheme: testValueA,
} as IThemeSettings,
@@ -46,7 +46,7 @@ const equalConfigB = {
'core.user': {
defaultTheme: testValueB,
} as IThemeSettings,
plugin: {
core: {
theming: {
defaultTheme: testValueB,
} as IThemeSettings,
@@ -26,7 +26,7 @@ export class ThemeSettingsService {
readonly deprecatedSettings: PluginSettings<IThemeSettings>;
constructor(private readonly pluginManagerService: PluginManagerService) {
this.settings = this.pluginManagerService.getPluginSettings('theming', defaultThemeSettings);
this.settings = this.pluginManagerService.getCoreSettings('theming', defaultThemeSettings);
this.deprecatedSettings = this.pluginManagerService.getCoreSettings('user', defaultThemeSettings);
}
}