Edit admin UI text (#32454)

* Update AdminEditOrgPage.tsx

* Update AdminOrgsTable.tsx

* Update AdminSettings.tsx

* Update UserCreatePage.tsx

* Update UserLdapSyncInfo.tsx

* Update UserListAdminPage.tsx

* Update UserOrgs.tsx

* Update UserProfile.tsx

* Update UserSessions.tsx
This commit is contained in:
Diana Payton 2021-03-29 12:52:40 -07:00 committed by GitHub
parent 29bf863a30
commit e5027982ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 18 additions and 18 deletions

View File

@ -56,7 +56,7 @@ export const AdminEditOrgPage: FC<Props> = ({ match }) => {
<Page navModel={navModel}> <Page navModel={navModel}>
<Page.Contents> <Page.Contents>
<> <>
<Legend>Edit Organization</Legend> <Legend>Edit organization</Legend>
{orgState.value && ( {orgState.value && (
<Form <Form
@ -79,7 +79,7 @@ export const AdminEditOrgPage: FC<Props> = ({ match }) => {
margin-top: 20px; margin-top: 20px;
`} `}
> >
<Legend>Organization Users</Legend> <Legend>Organization users</Legend>
{!!users.length && ( {!!users.length && (
<UsersTable <UsersTable
users={users} users={users}

View File

@ -13,7 +13,7 @@ export const AdminOrgsTable: FC<Props> = ({ orgs, onDelete }) => {
<table className="filter-table form-inline filter-table--hover"> <table className="filter-table form-inline filter-table--hover">
<thead> <thead>
<tr> <tr>
<th>Id</th> <th>ID</th>
<th>Name</th> <th>Name</th>
<th style={{ width: '1%' }}></th> <th style={{ width: '1%' }}></th>
</tr> </tr>

View File

@ -43,7 +43,7 @@ export class AdminSettings extends React.PureComponent<Props, State> {
<Page.Contents isLoading={isLoading}> <Page.Contents isLoading={isLoading}>
<div className="grafana-info-box span8" style={{ margin: '20px 0 25px 0' }}> <div className="grafana-info-box span8" style={{ margin: '20px 0 25px 0' }}>
These system settings are defined in grafana.ini or custom.ini (or overridden in ENV variables). To change These system settings are defined in grafana.ini or custom.ini (or overridden in ENV variables). To change
these you currently need to restart grafana. these you currently need to restart Grafana.
</div> </div>
<table className="filter-table"> <table className="filter-table">

View File

@ -49,7 +49,7 @@ const UserCreatePage: React.FC<UserCreatePageProps> = ({ navModel }) => {
<Input name="name" ref={register({ required: true })} /> <Input name="name" ref={register({ required: true })} />
</Field> </Field>
<Field label="E-mail"> <Field label="Email">
<Input name="email" ref={register} /> <Input name="email" ref={register} />
</Field> </Field>

View File

@ -34,7 +34,7 @@ export class UserLdapSyncInfo extends PureComponent<Props, State> {
<tbody> <tbody>
<tr> <tr>
<td>External sync</td> <td>External sync</td>
<td>User synced via LDAP some changes must be done in LDAP or mappings.</td> <td>User synced via LDAP. Some changes must be done in LDAP or mappings.</td>
<td> <td>
<span className="label label-tag">LDAP</span> <span className="label label-tag">LDAP</span>
</td> </td>
@ -42,12 +42,12 @@ export class UserLdapSyncInfo extends PureComponent<Props, State> {
<tr> <tr>
{ldapSyncInfo.enabled ? ( {ldapSyncInfo.enabled ? (
<> <>
<td>Next scheduled synchronisation</td> <td>Next scheduled synchronization</td>
<td colSpan={2}>{nextSyncTime}</td> <td colSpan={2}>{nextSyncTime}</td>
</> </>
) : ( ) : (
<> <>
<td>Next scheduled synchronisation</td> <td>Next scheduled synchronization</td>
<td colSpan={2}>Not enabled</td> <td colSpan={2}>Not enabled</td>
</> </>
)} )}

View File

@ -46,7 +46,7 @@ const UserListAdminPageUnConnected: React.FC<Props> = (props) => {
<Input <Input
width={40} width={40}
type="text" type="text"
placeholder="Search user by login, email or name" placeholder="Search user by login, email, or name."
tabIndex={1} tabIndex={1}
autoFocus={true} autoFocus={true}
value={query} value={query}

View File

@ -46,7 +46,7 @@ export class UserOrgs extends PureComponent<Props, State> {
return ( return (
<> <>
<h3 className="page-heading">Organisations</h3> <h3 className="page-heading">Organizations</h3>
<div className="gf-form-group"> <div className="gf-form-group">
<div className="gf-form"> <div className="gf-form">
<table className="filter-table form-inline"> <table className="filter-table form-inline">
@ -64,7 +64,7 @@ export class UserOrgs extends PureComponent<Props, State> {
</div> </div>
<div className={addToOrgContainerClass}> <div className={addToOrgContainerClass}>
<Button variant="secondary" onClick={this.showOrgAddModal(true)}> <Button variant="secondary" onClick={this.showOrgAddModal(true)}>
Add user to organisation Add user to organization
</Button> </Button>
</div> </div>
<AddToOrgModal isOpen={showAddOrgModal} onOrgAdd={onOrgAdd} onDismiss={this.showOrgAddModal(false)} /> <AddToOrgModal isOpen={showAddOrgModal} onOrgAdd={onOrgAdd} onDismiss={this.showOrgAddModal(false)} />
@ -162,7 +162,7 @@ class UnThemedOrgRow extends PureComponent<OrgRowProps, OrgRowState> {
onCancel={this.onCancelClick} onCancel={this.onCancelClick}
onConfirm={this.onOrgRemove} onConfirm={this.onOrgRemove}
> >
Remove from organisation Remove from organization
</ConfirmButton> </ConfirmButton>
</div> </div>
</td> </td>
@ -235,7 +235,7 @@ export class AddToOrgModal extends PureComponent<AddToOrgModalProps, AddToOrgMod
isOpen={isOpen} isOpen={isOpen}
onDismiss={this.onCancel} onDismiss={this.onCancel}
> >
<Field label="Organisation"> <Field label="Organization">
<OrgPicker onSelected={this.onOrgSelect} /> <OrgPicker onSelected={this.onOrgSelect} />
</Field> </Field>
<Field label="Role"> <Field label="Role">
@ -244,7 +244,7 @@ export class AddToOrgModal extends PureComponent<AddToOrgModalProps, AddToOrgMod
<Container padding="md"> <Container padding="md">
<HorizontalGroup spacing="md" justify="center"> <HorizontalGroup spacing="md" justify="center">
<Button variant="primary" onClick={this.onAddUserToOrg}> <Button variant="primary" onClick={this.onAddUserToOrg}>
Add to organisation Add to organization
</Button> </Button>
<Button variant="secondary" onClick={this.onCancel}> <Button variant="secondary" onClick={this.onCancel}>
Cancel Cancel

View File

@ -127,7 +127,7 @@ export class UserProfile extends PureComponent<Props, State> {
</div> </div>
<div className={styles.buttonRow}> <div className={styles.buttonRow}>
<Button variant="destructive" onClick={this.showDeleteUserModal(true)}> <Button variant="destructive" onClick={this.showDeleteUserModal(true)}>
Delete User Delete user
</Button> </Button>
<ConfirmModal <ConfirmModal
isOpen={showDeleteModal} isOpen={showDeleteModal}
@ -139,11 +139,11 @@ export class UserProfile extends PureComponent<Props, State> {
/> />
{user.isDisabled ? ( {user.isDisabled ? (
<Button variant="secondary" onClick={this.onUserEnable}> <Button variant="secondary" onClick={this.onUserEnable}>
Enable User Enable user
</Button> </Button>
) : ( ) : (
<Button variant="secondary" onClick={this.showDisableUserModal(true)}> <Button variant="secondary" onClick={this.showDisableUserModal(true)}>
Disable User Disable user
</Button> </Button>
)} )}
<ConfirmModal <ConfirmModal

View File

@ -53,7 +53,7 @@ export class UserSessions extends PureComponent<Props, State> {
<th>Last seen</th> <th>Last seen</th>
<th>Logged on</th> <th>Logged on</th>
<th>IP address</th> <th>IP address</th>
<th colSpan={2}>Browser &amp; OS</th> <th colSpan={2}>Browser and OS</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>