mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
[CORL-1046] Slack Helper Text Fix (#2959)
* fix: moved helper text * chore: version bump * chore: update description to match github
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
padding-bottom: var(--v2-spacing-2);
|
||||
}
|
||||
|
||||
.triggerHelp {
|
||||
padding-left: 26px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.button {
|
||||
padding-top: var(--v2-spacing-1);
|
||||
padding-bottom: var(--v2-spacing-1);
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
Flex,
|
||||
FormField,
|
||||
FormFieldDescription,
|
||||
HelperText,
|
||||
Label,
|
||||
TextField,
|
||||
} from "coral-ui/components/v2";
|
||||
@@ -159,16 +160,23 @@ const SlackChannel: FunctionComponent<Props> = ({
|
||||
parse={parseBool}
|
||||
>
|
||||
{({ input }) => (
|
||||
<CheckBox
|
||||
id={`configure-slack-channel-triggers-allComments-${input.name}`}
|
||||
disabled={disabled || !channelEnabled}
|
||||
className={styles.trigger}
|
||||
{...input}
|
||||
>
|
||||
<Localized id="configure-slack-channel-triggers-allComments">
|
||||
All Comments
|
||||
<div className={styles.trigger}>
|
||||
<CheckBox
|
||||
id={`configure-slack-channel-triggers-allComments-${input.name}`}
|
||||
disabled={disabled || !channelEnabled}
|
||||
{...input}
|
||||
>
|
||||
<Localized id="configure-slack-channel-triggers-allComments">
|
||||
All Comments
|
||||
</Localized>
|
||||
</CheckBox>
|
||||
<Localized id="configure-slack-notRecommended">
|
||||
<HelperText className={styles.triggerHelp}>
|
||||
Not recommended for sites with more than 10K comments
|
||||
per month.
|
||||
</HelperText>
|
||||
</Localized>
|
||||
</CheckBox>
|
||||
</div>
|
||||
)}
|
||||
</Field>
|
||||
<Field
|
||||
|
||||
@@ -96,8 +96,7 @@ const SlackConfigContainer: FunctionComponent<Props> = ({ form, settings }) => {
|
||||
<FormFieldDescription>
|
||||
Automatically send comments from Coral moderation queues to Slack
|
||||
channels. You will need Slack admin access to set this up. For steps
|
||||
on how to create a Slack App see our documentation. Not recommended
|
||||
for sites with more than 10K comments per month.
|
||||
on how to create a Slack App see our documentation.
|
||||
</FormFieldDescription>
|
||||
</Localized>
|
||||
<Button iconLeft onClick={onAddChannel}>
|
||||
|
||||
@@ -763,6 +763,7 @@ configure-slack-description =
|
||||
Automatically send comments from Coral moderation queues to Slack
|
||||
channels. You will need Slack admin access to set this up. For
|
||||
steps on how to create a Slack App see our <externalLink>documentation</externalLink>.
|
||||
configure-slack-notRecommended =
|
||||
Not recommended for sites with more than 10K comments per month.
|
||||
configure-slack-addChannel = Add Channel
|
||||
|
||||
|
||||
@@ -652,8 +652,9 @@ configure-slack-header-title = Integração com o Slack
|
||||
configure-slack-description =
|
||||
Encia automaticamente os comentários da fila de moderação do Coral para canais do Slack.
|
||||
Você precisa de acesso admin do slack para realizar esta configuração. Para as etapas de
|
||||
como criar uma app no Slack veja nossa <externalLink>documentação</externalLink>. Não
|
||||
recomendado para sites com mais de 10 mil comentários por mês.
|
||||
como criar uma app no Slack veja nossa <externalLink>documentação</externalLink>.
|
||||
configure-slack-notRecommended =
|
||||
Não recomendado para sites com mais de 10 mil comentários por mês.
|
||||
configure-slack-addChannel = Adicionar Canal
|
||||
|
||||
configure-slack-channel-defaultName = Novo canal
|
||||
|
||||
Reference in New Issue
Block a user