added missed json keys
This commit is contained in:
1 parent
7445e09d5f
commit
25c104ad8c
12 files changed
+558
-194
No files matched your search
+51
-28
@@ -199,13 +199,20 @@ export default function ProfilePage() {
|
||||
<BentoCard title={t("profile.sections.org", "Guramaçylyk maglumatlary")}>
|
||||
<InfoRow label={t("users.fields.role", "Roly")}>
|
||||
{user.role ? (
|
||||
<Link
|
||||
to={`/settings/users/roles/${user.role.id}`}
|
||||
className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1 hover:bg-muted transition-colors"
|
||||
>
|
||||
<Shield size={12} />
|
||||
{user.role.name}
|
||||
</Link>
|
||||
isAdmin ? (
|
||||
<Link
|
||||
to={`/settings/users/roles/${user.role.id}`}
|
||||
className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1 hover:bg-muted transition-colors"
|
||||
>
|
||||
<Shield size={12} />
|
||||
{user.role.name}
|
||||
</Link>
|
||||
) : (
|
||||
<span className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1">
|
||||
<Shield size={12} />
|
||||
{user.role.name}
|
||||
</span>
|
||||
)
|
||||
) : (
|
||||
<span className="text-sm text-muted-foreground">—</span>
|
||||
)}
|
||||
@@ -214,18 +221,27 @@ export default function ProfilePage() {
|
||||
<InfoRow label={t("users.sections.branches", "Şahamçalar")}>
|
||||
{branches.length > 0 ? (
|
||||
<div className="flex flex-wrap gap-1.5">
|
||||
{branches.map((b) => (
|
||||
<Link
|
||||
key={b.id}
|
||||
to={`/settings/location/branches/${b.id}`}
|
||||
className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1 hover:bg-muted transition-colors"
|
||||
>
|
||||
<Building2 size={11} className="text-muted-foreground" />
|
||||
<span className="text-foreground font-medium">
|
||||
{b.name?.[lang] || b.name?.tm || b.name?.en || b.name?.ru || b.uniqueCode || b.id}
|
||||
{branches.map((b) =>
|
||||
isAdmin ? (
|
||||
<Link
|
||||
key={b.id}
|
||||
to={`/settings/location/branches/${b.id}`}
|
||||
className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1 hover:bg-muted transition-colors"
|
||||
>
|
||||
<Building2 size={11} className="text-muted-foreground" />
|
||||
<span className="text-foreground font-medium">
|
||||
{b.name?.[lang] || b.name?.tm || b.name?.en || b.name?.ru || b.uniqueCode || b.id}
|
||||
</span>
|
||||
</Link>
|
||||
) : (
|
||||
<span key={b.id} className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1">
|
||||
<Building2 size={11} className="text-muted-foreground" />
|
||||
<span className="text-foreground font-medium">
|
||||
{b.name?.[lang] || b.name?.tm || b.name?.en || b.name?.ru || b.uniqueCode || b.id}
|
||||
</span>
|
||||
</span>
|
||||
</Link>
|
||||
))}
|
||||
),
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
<span className="text-sm text-muted-foreground">—</span>
|
||||
@@ -235,16 +251,23 @@ export default function ProfilePage() {
|
||||
<InfoRow label={t("users.sections.permissions", "Rugsatlar")}>
|
||||
{permissions.length > 0 ? (
|
||||
<div className="flex flex-wrap gap-1.5">
|
||||
{permissions.map((p) => (
|
||||
<Link
|
||||
key={p.id}
|
||||
to={`/settings/users/permissions/${p.id}`}
|
||||
className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1 hover:bg-muted transition-colors"
|
||||
>
|
||||
<KeyRound size={11} className="text-muted-foreground" />
|
||||
<span className="text-foreground font-medium">{p.name || p.code || p.id}</span>
|
||||
</Link>
|
||||
))}
|
||||
{permissions.map((p) =>
|
||||
isAdmin ? (
|
||||
<Link
|
||||
key={p.id}
|
||||
to={`/settings/users/permissions/${p.id}`}
|
||||
className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1 hover:bg-muted transition-colors"
|
||||
>
|
||||
<KeyRound size={11} className="text-muted-foreground" />
|
||||
<span className="text-foreground font-medium">{p.name || p.code || p.id}</span>
|
||||
</Link>
|
||||
) : (
|
||||
<span key={p.id} className="inline-flex items-center gap-1 text-xs border border-border rounded-md px-2 py-1">
|
||||
<KeyRound size={11} className="text-muted-foreground" />
|
||||
<span className="text-foreground font-medium">{p.name || p.code || p.id}</span>
|
||||
</span>
|
||||
),
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
<span className="text-sm text-muted-foreground">—</span>
|
||||
|
||||
Reference in new issue
Block a user