@openmfp/portal-ui-lib 0.184.2 → 0.184.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -697,7 +697,7 @@ const localDevelopmentSettingsLocalStorage = {
|
|
|
697
697
|
},
|
|
698
698
|
};
|
|
699
699
|
const userSettingsLocalStorage = {
|
|
700
|
-
read:
|
|
700
|
+
read: (userInfo) => {
|
|
701
701
|
const transientSettings = {
|
|
702
702
|
frame_userAccount: {
|
|
703
703
|
name: userInfo.name || '',
|
|
@@ -1004,7 +1004,7 @@ class UserSettingsConfigService {
|
|
|
1004
1004
|
this.versionsConfig = await this.readDependenciesVersions();
|
|
1005
1005
|
const envConfig = await this.envConfigService.getEnvConfig();
|
|
1006
1006
|
let coreGroups = await this.getCoreUserSettingsGroups();
|
|
1007
|
-
|
|
1007
|
+
return {
|
|
1008
1008
|
userSettingsProfileMenuEntry: {
|
|
1009
1009
|
label: 'USERSETTINGSPROFILEMENUENTRY_SETTINGS',
|
|
1010
1010
|
},
|
|
@@ -1014,12 +1014,17 @@ class UserSettingsConfigService {
|
|
|
1014
1014
|
dialogHeader: 'USERSETTINGSDIALOG_HEADER',
|
|
1015
1015
|
},
|
|
1016
1016
|
userSettingGroups: { ...coreGroups, ...groupsFromNodes },
|
|
1017
|
-
readUserSettings:
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1017
|
+
readUserSettings: () => {
|
|
1018
|
+
return userSettingsLocalStorage
|
|
1019
|
+
.read(this.authService.getUserInfo())
|
|
1020
|
+
.then((setting) => {
|
|
1021
|
+
return {
|
|
1022
|
+
...(setting || {}),
|
|
1023
|
+
frame_versions: this.versionsConfig,
|
|
1024
|
+
};
|
|
1025
|
+
});
|
|
1021
1026
|
},
|
|
1022
|
-
storeUserSettings:
|
|
1027
|
+
storeUserSettings: (settings, previous) => {
|
|
1023
1028
|
userSettingsLocalStorage.store(settings);
|
|
1024
1029
|
this.applyNewTheme(settings, previous);
|
|
1025
1030
|
this.changeToSelectedLanguage(settings, previous);
|
|
@@ -1029,7 +1034,6 @@ class UserSettingsConfigService {
|
|
|
1029
1034
|
}
|
|
1030
1035
|
},
|
|
1031
1036
|
};
|
|
1032
|
-
return userSettings;
|
|
1033
1037
|
}
|
|
1034
1038
|
async getCoreUserSettingsGroups() {
|
|
1035
1039
|
const envConfig = await this.envConfigService.getEnvConfig();
|