Commit 947d5808 authored by George Goldberg's avatar George Goldberg Committed by Christopher Speller
Browse files

MM-9692: Add note to use Slack Importer CLI for larger ones. (#1213)

parent 6f2759df
......@@ -45,7 +45,7 @@ class TeamImportTab extends React.Component {
render() {
const {formatMessage} = this.props.intl;
var uploadDocsLink = (
const uploadDocsLink = (
<a
href='https://docs.mattermost.com/administration/migrating.html#migrating-from-slack'
target='_blank'
......@@ -58,7 +58,7 @@ class TeamImportTab extends React.Component {
</a>
);
var uploadExportInstructions = (
const uploadExportInstructions = (
<strong>
<FormattedMessage
id='team_import_tab.importHelpExportInstructions'
......@@ -67,7 +67,7 @@ class TeamImportTab extends React.Component {
</strong>
);
var uploadExporterLink = (
const uploadExporterLink = (
<a
href='https://github.com/grundleborg/slack-advanced-exporter'
target='_blank'
......@@ -80,7 +80,20 @@ class TeamImportTab extends React.Component {
</a>
);
var uploadHelpText = (
const importCliLink = (
<a
href='https://docs.mattermost.com/administration/migrating.html#migrating-from-slack-using-the-mattermost-cli'
target='_blank'
rel='noopener noreferrer'
>
<FormattedMessage
id='team_import_tab.importHelpCliDocsLink'
defaultMessage='CLI tool for Slack import'
/>
</a>
);
const uploadHelpText = (
<div>
<p>
<FormattedMessage
......@@ -107,10 +120,19 @@ class TeamImportTab extends React.Component {
}}
/>
</p>
<p>
<FormattedMessage
id='team_import_tab.importHelpLine4'
defaultMessage='For Slack teams with over 10,000 messages, we recommend using the {cliLink}.'
values={{
cliLink: importCliLink,
}}
/>
</p>
</div>
);
var uploadSection = (
const uploadSection = (
<SettingUpload
title={formatMessage(holders.importSlack)}
submit={this.doImportSlack}
......@@ -119,7 +141,7 @@ class TeamImportTab extends React.Component {
/>
);
var messageSection;
let messageSection;
switch (this.state.status) {
case 'ready':
messageSection = '';
......
......@@ -2775,6 +2775,8 @@
"team_import_tab.importHelpLine1": "Slack import to Mattermost supports importing of messages in your Slack team's public channels.",
"team_import_tab.importHelpLine2": "To import a team from Slack, go to {exportInstructions}. See {uploadDocsLink} to learn more.",
"team_import_tab.importHelpLine3": "To import posts with attached files, see {slackAdvancedExporterLink} for details.",
"team_import_tab.importHelpLine4": "For Slack teams with over 10,000 messages, we recommend using the {cliLink}.",
"team_import_tab.importHelpCliDocsLink": "CLI tool for Slack import",
"team_import_tab.importSlack": "Import from Slack (Beta)",
"team_import_tab.importing": " Importing...",
"team_import_tab.successful": " Import successful: ",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment