Added 'Created by...' line in integration list
Этот коммит содержится в:
@@ -4,6 +4,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import ChannelStore from 'stores/channel_store.jsx';
|
import ChannelStore from 'stores/channel_store.jsx';
|
||||||
|
import * as Utils from 'utils/utils.jsx';
|
||||||
|
|
||||||
import {FormattedMessage} from 'react-intl';
|
import {FormattedMessage} from 'react-intl';
|
||||||
|
|
||||||
@@ -52,6 +53,18 @@ export default class InstalledIncomingWebhook extends React.Component {
|
|||||||
{incomingWebhook.description}
|
{incomingWebhook.description}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div className='tem-details__row'>
|
||||||
|
<span className='item-details__creation'>
|
||||||
|
<FormattedMessage
|
||||||
|
id='installed_integrations.creation'
|
||||||
|
defaultMessage='Created by {creator} on {createAt, date, full}'
|
||||||
|
values={{
|
||||||
|
creator: Utils.displayUsername(incomingWebhook.user_id),
|
||||||
|
createAt: incomingWebhook.create_at
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='item-actions'>
|
<div className='item-actions'>
|
||||||
<a
|
<a
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import ChannelStore from 'stores/channel_store.jsx';
|
import ChannelStore from 'stores/channel_store.jsx';
|
||||||
|
import * as Utils from 'utils/utils.jsx';
|
||||||
|
|
||||||
import {FormattedMessage} from 'react-intl';
|
import {FormattedMessage} from 'react-intl';
|
||||||
|
|
||||||
@@ -58,8 +59,18 @@ export default class InstalledOutgoingWebhook extends React.Component {
|
|||||||
<div className='item-details__row'>
|
<div className='item-details__row'>
|
||||||
<span className='item-details__description'>
|
<span className='item-details__description'>
|
||||||
{outgoingWebhook.description}
|
{outgoingWebhook.description}
|
||||||
{' - '}
|
</span>
|
||||||
{outgoingWebhook.token}
|
</div>
|
||||||
|
<div className='item-details__row'>
|
||||||
|
<span className='item-details__creation'>
|
||||||
|
<FormattedMessage
|
||||||
|
id='installed_integrations.creation'
|
||||||
|
defaultMessage='Created by {creator} on {createAt, date, full}'
|
||||||
|
values={{
|
||||||
|
creator: Utils.displayUsername(outgoingWebhook.creator_id),
|
||||||
|
createAt: outgoingWebhook.create_at
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -814,6 +814,7 @@
|
|||||||
"get_team_invite_link_modal.title": "Team Invite Link",
|
"get_team_invite_link_modal.title": "Team Invite Link",
|
||||||
"installed_integrations.add": "Add Integration",
|
"installed_integrations.add": "Add Integration",
|
||||||
"installed_integrations.allFilter": "All ({count})",
|
"installed_integrations.allFilter": "All ({count})",
|
||||||
|
"installed_integrations.creation": "Created by {creator} on {createAt, date, full}",
|
||||||
"installed_integrations.delete": "Delete",
|
"installed_integrations.delete": "Delete",
|
||||||
"installed_integrations.header": "Installed Integrations",
|
"installed_integrations.header": "Installed Integrations",
|
||||||
"installed_integrations.incomingWebhookType": "(Incoming Webhook)",
|
"installed_integrations.incomingWebhookType": "(Incoming Webhook)",
|
||||||
|
|||||||
@@ -196,6 +196,11 @@
|
|||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-details__creation {
|
||||||
|
color: $dark-gray;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
.list-item__actions {
|
.list-item__actions {
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user