Users: Add numerical indentifiers to detail pages (#95620)

* add numerical indentifiers to frontend while they're still valid

* lowercase identifier
This commit is contained in:
Jo 2024-10-31 15:05:18 +01:00 committed by GitHub
parent 6c45f7f556
commit d77fc50198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,7 @@ export function UserProfile({
<div>
<table className="filter-table form-inline">
<tbody>
<UserProfileRow label="Numerical identifier" value={user.id.toString()} locked={true} />
<UserProfileRow
label="Name"
value={user.name}

View File

@ -50,6 +50,7 @@ export function ServiceAccountProfile({ serviceAccount, timeZone, onChange }: Pr
<h3>Information</h3>
<table className="filter-table">
<tbody>
<ServiceAccountProfileRow label="Numerical identifier" value={serviceAccount.id.toString()} disabled={true} />
<ServiceAccountProfileRow
label="Name"
value={serviceAccount.name}

View File

@ -48,6 +48,9 @@ export const TeamSettings = ({ team, updateTeam }: Props) => {
<Stack direction={'column'} gap={3}>
<form onSubmit={handleSubmit(onSubmit)} style={{ maxWidth: '600px' }}>
<FieldSet label="Team details">
<Field label="Numerical identifier" disabled={true}>
<Input value={team.id} id="id-input" />
</Field>
<Field
label="Name"
disabled={!canWriteTeamSettings}