1
0
forked from baron/baron-sso

누락된 키 추가: 테넌트 수정 화면에 새롭게 추가한 '상위 테넌트' 관련 UI 키 2종을 로컬 설정 파일에 반영했습니다

This commit is contained in:
2026-03-24 16:33:01 +09:00
parent a4f283e4e6
commit 311e491683
11 changed files with 3986 additions and 4045 deletions

View File

@@ -79,9 +79,8 @@ function UserCreatePage() {
// Lock company for tenant_admin
React.useEffect(() => {
const p = profile as any;
if (p?.role === "tenant_admin" && p.tenantSlug) {
setValue("tenantSlug", p.tenantSlug);
if (profile?.role === "tenant_admin" && profile.tenantSlug) {
setValue("tenantSlug", profile.tenantSlug);
}
}, [profile, setValue]);
@@ -362,7 +361,7 @@ function UserCreatePage() {
id="tenantSlug"
className="flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"
{...register("tenantSlug")}
disabled={(profile as any)?.role === "tenant_admin"}
disabled={profile?.role === "tenant_admin"}
>
<option value="">
{t(