From 8e327df7a5fa02c48ff74144f8a583fa9ea129ca Mon Sep 17 00:00:00 2001 From: Bradley Hilton Date: Tue, 29 Nov 2016 09:56:36 -0600 Subject: [PATCH] Add a warning about the importer being in beta and to report issues --- packages/rocketchat-i18n/i18n/en.i18n.json | 1 + .../rocketchat-importer-hipchat-enterprise/main.js | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/rocketchat-i18n/i18n/en.i18n.json b/packages/rocketchat-i18n/i18n/en.i18n.json index 674c6da4a52..9f60d4769c4 100644 --- a/packages/rocketchat-i18n/i18n/en.i18n.json +++ b/packages/rocketchat-i18n/i18n/en.i18n.json @@ -570,6 +570,7 @@ "Importer_Archived": "Archived", "Importer_CSV_Information": "The CSV importer requires a specific format, please read the documentation for how to structure your zip file:", "Importer_HipChatEnterprise_Information": "The file uploaded must be a decrypted tar.gz, please read the documentation for further information:", + "Importer_HipChatEnterprise_BetaWarning": "Please be aware that this import is still a work in progress, please report any errors which occur in GitHub:", "Importer_done": "Importing complete!", "Importer_finishing": "Finishing up the import.", "Importer_From_Description": "Imports __from__ data into Rocket.Chat.", diff --git a/packages/rocketchat-importer-hipchat-enterprise/main.js b/packages/rocketchat-importer-hipchat-enterprise/main.js index 416caa248eb..42b1c592c39 100644 --- a/packages/rocketchat-importer-hipchat-enterprise/main.js +++ b/packages/rocketchat-importer-hipchat-enterprise/main.js @@ -2,9 +2,14 @@ Importer.addImporter('hipchatenterprise', Importer.HipChatEnterprise, { name: 'HipChat Enterprise', - warnings: [{ - text: 'Importer_HipChatEnterprise_Information', - href: 'https://rocket.chat/docs/administrator-guides/import/hipchat/enterprise/' - }], + warnings: [ + { + text: 'Importer_HipChatEnterprise_Information', + href: 'https://rocket.chat/docs/administrator-guides/import/hipchat/enterprise/' + }, { + text: 'Importer_HipChatEnterprise_BetaWarning', + href: 'https://github.com/RocketChat/Rocket.Chat/issues/new' + } + ], fileTypeRegex: new RegExp('application\/.*?gzip') });