fix: Administrator label in users table (#2)

This commit is contained in:
Michael Hespenheide 2024-03-11 20:29:40 -04:00 committed by GitHub
parent a2245efa2d
commit 2cff2676f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ export function ProfileSettings() {
return formatMessage(labels.user); return formatMessage(labels.user);
} }
if (value === ROLES.admin) { if (value === ROLES.admin) {
return formatMessage(labels.administrator); return formatMessage(labels.admin);
} }
if (value === ROLES.viewOnly) { if (value === ROLES.viewOnly) {
return formatMessage(labels.viewOnly); return formatMessage(labels.viewOnly);

View File

@ -34,7 +34,7 @@ export function UserAddForm({ onSave, onClose }) {
return formatMessage(labels.user); return formatMessage(labels.user);
} }
if (value === ROLES.admin) { if (value === ROLES.admin) {
return formatMessage(labels.administrator); return formatMessage(labels.admin);
} }
if (value === ROLES.viewOnly) { if (value === ROLES.viewOnly) {
return formatMessage(labels.viewOnly); return formatMessage(labels.viewOnly);
@ -58,7 +58,7 @@ export function UserAddForm({ onSave, onClose }) {
<Dropdown renderValue={renderValue}> <Dropdown renderValue={renderValue}>
<Item key={ROLES.viewOnly}>{formatMessage(labels.viewOnly)}</Item> <Item key={ROLES.viewOnly}>{formatMessage(labels.viewOnly)}</Item>
<Item key={ROLES.user}>{formatMessage(labels.user)}</Item> <Item key={ROLES.user}>{formatMessage(labels.user)}</Item>
<Item key={ROLES.admin}>{formatMessage(labels.administrator)}</Item> <Item key={ROLES.admin}>{formatMessage(labels.admin)}</Item>
</Dropdown> </Dropdown>
</FormInput> </FormInput>
</FormRow> </FormRow>

View File

@ -46,7 +46,7 @@ export function UserEditForm({ userId, onSave }: { userId: string; onSave?: () =
return formatMessage(labels.user); return formatMessage(labels.user);
} }
if (value === ROLES.admin) { if (value === ROLES.admin) {
return formatMessage(labels.administrator); return formatMessage(labels.admin);
} }
if (value === ROLES.viewOnly) { if (value === ROLES.viewOnly) {
return formatMessage(labels.viewOnly); return formatMessage(labels.viewOnly);
@ -76,7 +76,7 @@ export function UserEditForm({ userId, onSave }: { userId: string; onSave?: () =
<Dropdown renderValue={renderValue}> <Dropdown renderValue={renderValue}>
<Item key={ROLES.viewOnly}>{formatMessage(labels.viewOnly)}</Item> <Item key={ROLES.viewOnly}>{formatMessage(labels.viewOnly)}</Item>
<Item key={ROLES.user}>{formatMessage(labels.user)}</Item> <Item key={ROLES.user}>{formatMessage(labels.user)}</Item>
<Item key={ROLES.admin}>{formatMessage(labels.administrator)}</Item> <Item key={ROLES.admin}>{formatMessage(labels.admin)}</Item>
</Dropdown> </Dropdown>
</FormInput> </FormInput>
</FormRow> </FormRow>

View File

@ -18,7 +18,7 @@ export const labels = defineMessages({
user: { id: 'label.user', defaultMessage: 'User' }, user: { id: 'label.user', defaultMessage: 'User' },
viewOnly: { id: 'label.view-only', defaultMessage: 'View only' }, viewOnly: { id: 'label.view-only', defaultMessage: 'View only' },
manage: { id: 'label.manage', defaultMessage: 'Manage' }, manage: { id: 'label.manage', defaultMessage: 'Manage' },
administrator: { id: 'label.administrator', defaultMessage: 'Administrator' }, admin: { id: 'label.administrator', defaultMessage: 'Administrator' },
confirm: { id: 'label.confirm', defaultMessage: 'Confirm' }, confirm: { id: 'label.confirm', defaultMessage: 'Confirm' },
details: { id: 'label.details', defaultMessage: 'Details' }, details: { id: 'label.details', defaultMessage: 'Details' },
website: { id: 'label.website', defaultMessage: 'Website' }, website: { id: 'label.website', defaultMessage: 'Website' },