diff --git a/ui-ngx/src/app/modules/home/pages/user/user.component.html b/ui-ngx/src/app/modules/home/pages/user/user.component.html
index 658b361255..6b0a507e51 100644
--- a/ui-ngx/src/app/modules/home/pages/user/user.component.html
+++ b/ui-ngx/src/app/modules/home/pages/user/user.component.html
@@ -98,6 +98,24 @@
formControlName="phone">
+
+ language.language
+
+
+ {{ lang ? ('language.locales.' + lang | translate) : ''}}
+
+
+
+
+ unit.unit-system
+
+ {{ 'unit.unit-system-type.AUTO' | translate }}
+ @for(unit of UnitSystems; track unit) {
+ {{ 'unit.unit-system-type.' + unit | translate }}
+ }
+
+
user.description
diff --git a/ui-ngx/src/app/modules/home/pages/user/user.component.ts b/ui-ngx/src/app/modules/home/pages/user/user.component.ts
index da0a001b5d..c5cb91502e 100644
--- a/ui-ngx/src/app/modules/home/pages/user/user.component.ts
+++ b/ui-ngx/src/app/modules/home/pages/user/user.component.ts
@@ -27,6 +27,8 @@ import { isDefinedAndNotNull } from '@core/utils';
import { EntityTableConfig } from '@home/models/entity/entities-table-config.models';
import { ActionNotificationShow } from '@app/core/notification/notification.actions';
import { TranslateService } from '@ngx-translate/core';
+import { environment as env } from '@env/environment';
+import { UnitSystems } from '@shared/models/unit.models';
@Component({
selector: 'tb-user',
@@ -36,6 +38,8 @@ import { TranslateService } from '@ngx-translate/core';
export class UserComponent extends EntityComponent {
authority = Authority;
+ languageList = env.supportedLangs;
+ UnitSystems = UnitSystems;
loginAsUserEnabled$ = this.store.pipe(
select(selectAuth),
@@ -77,6 +81,8 @@ export class UserComponent extends EntityComponent {
additionalInfo: this.fb.group(
{
description: [entity && entity.additionalInfo ? entity.additionalInfo.description : ''],
+ lang: [entity && entity.additionalInfo ? entity.additionalInfo.lang : null],
+ unitSystem: [entity && entity.additionalInfo ? entity.additionalInfo.unitSystem : null],
defaultDashboardId: [entity && entity.additionalInfo ? entity.additionalInfo.defaultDashboardId : null],
defaultDashboardFullscreen: [entity && entity.additionalInfo ? entity.additionalInfo.defaultDashboardFullscreen : false],
homeDashboardId: [entity && entity.additionalInfo ? entity.additionalInfo.homeDashboardId : null],
@@ -94,6 +100,10 @@ export class UserComponent extends EntityComponent {
this.entityForm.patchValue({lastName: entity.lastName});
this.entityForm.patchValue({phone: entity.phone});
this.entityForm.patchValue({additionalInfo: {description: entity.additionalInfo ? entity.additionalInfo.description : ''}});
+ this.entityForm.patchValue({additionalInfo:
+ {lang: entity.additionalInfo ? entity.additionalInfo.lang : env.defaultLang}});
+ this.entityForm.patchValue({additionalInfo:
+ {unitSystem: entity.additionalInfo ? entity.additionalInfo.unitSystem : null}});
this.entityForm.patchValue({additionalInfo:
{defaultDashboardId: entity.additionalInfo ? entity.additionalInfo.defaultDashboardId : null}});
this.entityForm.patchValue({additionalInfo: