[MM-60833] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/group_settings/group_details/group_users.tsx' with FormattedMessage (#28619)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
db951c48e7
Коммит
035f3c14f1
@@ -7,12 +7,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
|
|||||||
<div
|
<div
|
||||||
className="group-users--header"
|
className="group-users--header"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)"
|
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>"
|
||||||
id="admin.group_settings.group_profile.group_users.ldapConnector"
|
id="admin.group_settings.group_profile.group_users.ldapConnectorText"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
"siteURL": "http://localhost:8065",
|
"a": [Function],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -233,12 +233,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
|
|||||||
<div
|
<div
|
||||||
className="group-users--header"
|
className="group-users--header"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)"
|
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>"
|
||||||
id="admin.group_settings.group_profile.group_users.ldapConnector"
|
id="admin.group_settings.group_profile.group_users.ldapConnectorText"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
"siteURL": "http://localhost:8065",
|
"a": [Function],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -459,12 +459,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
|
|||||||
<div
|
<div
|
||||||
className="group-users--header"
|
className="group-users--header"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)"
|
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>"
|
||||||
id="admin.group_settings.group_profile.group_users.ldapConnector"
|
id="admin.group_settings.group_profile.group_users.ldapConnectorText"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
"siteURL": "http://localhost:8065",
|
"a": [Function],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -685,12 +685,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
|
|||||||
<div
|
<div
|
||||||
className="group-users--header"
|
className="group-users--header"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)"
|
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>"
|
||||||
id="admin.group_settings.group_profile.group_users.ldapConnector"
|
id="admin.group_settings.group_profile.group_users.ldapConnectorText"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
"siteURL": "http://localhost:8065",
|
"a": [Function],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -871,12 +871,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
|
|||||||
<div
|
<div
|
||||||
className="group-users--header"
|
className="group-users--header"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)"
|
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>"
|
||||||
id="admin.group_settings.group_profile.group_users.ldapConnector"
|
id="admin.group_settings.group_profile.group_users.ldapConnectorText"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
"siteURL": "http://localhost:8065",
|
"a": [Function],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -1097,12 +1097,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
|
|||||||
<div
|
<div
|
||||||
className="group-users--header"
|
className="group-users--header"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)"
|
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>"
|
||||||
id="admin.group_settings.group_profile.group_users.ldapConnector"
|
id="admin.group_settings.group_profile.group_users.ldapConnectorText"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
"siteURL": "http://localhost:8065",
|
"a": [Function],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -1139,12 +1139,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
|
|||||||
<div
|
<div
|
||||||
className="group-users--header"
|
className="group-users--header"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)"
|
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>"
|
||||||
id="admin.group_settings.group_profile.group_users.ldapConnector"
|
id="admin.group_settings.group_profile.group_users.ldapConnectorText"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
"siteURL": "http://localhost:8065",
|
"a": [Function],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -1365,12 +1365,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
|
|||||||
<div
|
<div
|
||||||
className="group-users--header"
|
className="group-users--header"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)"
|
defaultMessage="AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>"
|
||||||
id="admin.group_settings.group_profile.group_users.ldapConnector"
|
id="admin.group_settings.group_profile.group_users.ldapConnectorText"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
"siteURL": "http://localhost:8065",
|
"a": [Function],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -3,18 +3,16 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {FormattedMessage} from 'react-intl';
|
import {FormattedMessage} from 'react-intl';
|
||||||
|
import {Link} from 'react-router-dom';
|
||||||
|
|
||||||
import type {UserProfile} from '@mattermost/types/users';
|
import type {UserProfile} from '@mattermost/types/users';
|
||||||
|
|
||||||
import type {ActionResult} from 'mattermost-redux/types/actions';
|
import type {ActionResult} from 'mattermost-redux/types/actions';
|
||||||
|
|
||||||
import GroupUsersRow from 'components/admin_console/group_settings/group_details/group_users_row';
|
import GroupUsersRow from 'components/admin_console/group_settings/group_details/group_users_row';
|
||||||
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
|
|
||||||
import NextIcon from 'components/widgets/icons/fa_next_icon';
|
import NextIcon from 'components/widgets/icons/fa_next_icon';
|
||||||
import PreviousIcon from 'components/widgets/icons/fa_previous_icon';
|
import PreviousIcon from 'components/widgets/icons/fa_previous_icon';
|
||||||
|
|
||||||
import {getSiteURL} from 'utils/url';
|
|
||||||
|
|
||||||
const GROUP_MEMBERS_PAGE_SIZE = 20;
|
const GROUP_MEMBERS_PAGE_SIZE = 20;
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -160,12 +158,18 @@ export default class GroupUsers extends React.PureComponent<Props, State> {
|
|||||||
return (
|
return (
|
||||||
<div className='group-users'>
|
<div className='group-users'>
|
||||||
<div className='group-users--header'>
|
<div className='group-users--header'>
|
||||||
<FormattedMarkdownMessage
|
<FormattedMessage
|
||||||
id='admin.group_settings.group_profile.group_users.ldapConnector'
|
id='admin.group_settings.group_profile.group_users.ldapConnectorText'
|
||||||
defaultMessage={
|
defaultMessage={
|
||||||
'AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)'
|
'AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>'
|
||||||
}
|
}
|
||||||
values={{siteURL: getSiteURL()}}
|
values={{
|
||||||
|
a: (chunks: string) => (
|
||||||
|
<Link to='/admin_console/authentication/ldap'>
|
||||||
|
{chunks}
|
||||||
|
</Link>
|
||||||
|
),
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className='group-users--body'>
|
<div className='group-users--body'>
|
||||||
|
|||||||
@@ -1090,7 +1090,7 @@
|
|||||||
"admin.group_settings.group_profile.group_teams_and_channels.assignedRoles": "Assigned Roles",
|
"admin.group_settings.group_profile.group_teams_and_channels.assignedRoles": "Assigned Roles",
|
||||||
"admin.group_settings.group_profile.group_teams_and_channels.name": "Name",
|
"admin.group_settings.group_profile.group_teams_and_channels.name": "Name",
|
||||||
"admin.group_settings.group_profile.group_teams_and_channels.type": "Type",
|
"admin.group_settings.group_profile.group_teams_and_channels.type": "Type",
|
||||||
"admin.group_settings.group_profile.group_users.ldapConnector": "AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)",
|
"admin.group_settings.group_profile.group_users.ldapConnectorText": "AD/LDAP Connector is configured to sync and manage this group and its users. <a>Click here to view</a>",
|
||||||
"admin.group_settings.group_row.configure": "Configure",
|
"admin.group_settings.group_row.configure": "Configure",
|
||||||
"admin.group_settings.group_row.edit": "Edit",
|
"admin.group_settings.group_row.edit": "Edit",
|
||||||
"admin.group_settings.group_row.link_failed": "Link failed",
|
"admin.group_settings.group_row.link_failed": "Link failed",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user