forked from baron/baron-sso
refactoring
This commit is contained in:
@@ -599,6 +599,7 @@ department = "Department"
|
||||
email = "Email"
|
||||
name = "Name"
|
||||
tenant = "Tenant"
|
||||
tenant_slug = "Tenant Slug"
|
||||
|
||||
[ui.userfront.profile.password]
|
||||
change = "Change"
|
||||
|
||||
@@ -821,6 +821,7 @@ department = "소속"
|
||||
email = "이메일"
|
||||
name = "이름"
|
||||
tenant = "소속 테넌트"
|
||||
tenant_slug = "테넌트 Slug"
|
||||
|
||||
[ui.userfront.profile.password]
|
||||
change = "비밀번호 변경"
|
||||
|
||||
@@ -125,11 +125,6 @@ class _ErrorScreenState extends State<ErrorScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
final companyCode = profile['companyCode']?.toString().trim() ?? '';
|
||||
if (companyCode.isNotEmpty) {
|
||||
return companyCode;
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -259,11 +254,6 @@ class _ErrorScreenState extends State<ErrorScreen> {
|
||||
appendLabel(tenant);
|
||||
}
|
||||
|
||||
final companyCode = profile['companyCode']?.toString().trim() ?? '';
|
||||
if (companyCode.isNotEmpty) {
|
||||
appendLabel(companyCode);
|
||||
}
|
||||
|
||||
return labels;
|
||||
}
|
||||
|
||||
|
||||
@@ -1178,11 +1178,11 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||
profile.tenant!.name,
|
||||
),
|
||||
],
|
||||
if (profile.companyCode.isNotEmpty) ...[
|
||||
if (profile.tenant?.slug.isNotEmpty ?? false) ...[
|
||||
const Divider(height: 24),
|
||||
_buildReadOnlyTile(
|
||||
tr('ui.userfront.profile.field.company_code'),
|
||||
profile.companyCode,
|
||||
tr('ui.userfront.profile.field.tenant_slug'),
|
||||
profile.tenant!.slug,
|
||||
),
|
||||
],
|
||||
],
|
||||
|
||||
@@ -1930,6 +1930,7 @@ const Map<String, String> koStrings = {
|
||||
"ui.userfront.profile.field.email": "이메일",
|
||||
"ui.userfront.profile.field.name": "이름",
|
||||
"ui.userfront.profile.field.tenant": "소속 테넌트",
|
||||
"ui.userfront.profile.field.tenant_slug": "테넌트 Slug",
|
||||
"ui.userfront.profile.manage": "프로필 관리",
|
||||
"ui.userfront.profile.password.change": "비밀번호 변경",
|
||||
"ui.userfront.profile.password.confirm": "새 비밀번호 확인",
|
||||
@@ -4125,6 +4126,7 @@ const Map<String, String> enStrings = {
|
||||
"ui.userfront.profile.field.email": "Email",
|
||||
"ui.userfront.profile.field.name": "Name",
|
||||
"ui.userfront.profile.field.tenant": "Tenant",
|
||||
"ui.userfront.profile.field.tenant_slug": "Tenant Slug",
|
||||
"ui.userfront.profile.manage": "Manage profile",
|
||||
"ui.userfront.profile.password.change": "Change",
|
||||
"ui.userfront.profile.password.confirm": "Confirm",
|
||||
|
||||
Reference in New Issue
Block a user