Update "Industry" setting (#20510)

pull/20393/head
gabriellsh 5 years ago committed by GitHub
parent 938e8f1abb
commit 2549a0178e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 38
      app/lib/server/startup/settings.js
  2. 13
      packages/rocketchat-i18n/i18n/en.i18n.json
  3. 1
      server/startup/migrations/index.js
  4. 20
      server/startup/migrations/v215.js

@ -1559,16 +1559,16 @@ settings.addGroup('Setup_Wizard', function() {
type: 'select',
values: [
{
key: 'advocacy',
i18nLabel: 'Advocacy',
key: 'aerospaceDefense',
i18nLabel: 'Aerospace_and_Defense',
},
{
key: 'blockchain',
i18nLabel: 'Blockchain',
},
{
key: 'helpCenter',
i18nLabel: 'Help_Center',
key: 'contactCenter',
i18nLabel: 'Contact_Center',
},
{
key: 'manufacturing',
@ -1594,10 +1594,6 @@ settings.addGroup('Setup_Wizard', function() {
key: 'entertainment',
i18nLabel: 'Entertainment',
},
{
key: 'publicRelations',
i18nLabel: 'Public_Relations',
},
{
key: 'religious',
i18nLabel: 'Religious',
@ -1614,29 +1610,25 @@ settings.addGroup('Setup_Wizard', function() {
key: 'realEstate',
i18nLabel: 'Real_Estate',
},
{
key: 'tourism',
i18nLabel: 'Tourism',
},
{
key: 'telecom',
i18nLabel: 'Telecom',
},
{
key: 'consumerGoods',
i18nLabel: 'Consumer_Goods',
i18nLabel: 'Consumer_Packaged_Goods',
},
{
key: 'financialServices',
i18nLabel: 'Financial_Services',
},
{
key: 'healthcarePharmaceutical',
i18nLabel: 'Healthcare_and_Pharmaceutical',
key: 'healthcare',
i18nLabel: 'Healthcare',
},
{
key: 'industry',
i18nLabel: 'Industry',
key: 'pharmaceutical',
i18nLabel: 'Pharmaceutical',
},
{
key: 'media',
@ -1654,6 +1646,18 @@ settings.addGroup('Setup_Wizard', function() {
key: 'technologyProvider',
i18nLabel: 'Technology_Provider',
},
{
key: 'hospitalityBusinness',
i18nLabel: 'Hospitality_Businness',
},
{
key: 'itSecurity',
i18nLabel: 'It_Security',
},
{
key: 'utilities',
i18nLabel: 'Utilities',
},
{
key: 'other',
i18nLabel: 'Other',

@ -281,7 +281,7 @@
"Admin_Info": "Admin Info",
"Administration": "Administration",
"Adult_images_are_not_allowed": "Adult images are not allowed",
"Advocacy": "Advocacy",
"Aerospace_and_Defense": "Aerospace & Defense",
"After_OAuth2_authentication_users_will_be_redirected_to_this_URL": "After OAuth2 authentication, users will be redirected to an URL on this list. You can add one URL per line.",
"Agent": "Agent",
"Agent_added": "Agent added",
@ -882,7 +882,7 @@
"Connection_success": "LDAP Connection Successful",
"Connectivity_Services": "Connectivity Services",
"Consulting": "Consulting",
"Consumer_Goods": "Consumer Goods",
"Consumer_Packaged_Goods": "Consumer Packaged Goods",
"Contact": "Contact",
"Contacts": "Contacts",
"Contact_Name": "Contact Name",
@ -1903,8 +1903,8 @@
"Hash": "Hash",
"Header": "Header",
"Header_and_Footer": "Header and Footer",
"Healthcare_and_Pharmaceutical": "Healthcare/Pharmaceutical",
"Help_Center": "Help Center",
"Pharmaceutical": "Pharmaceutical",
"Healthcare": "Healthcare",
"Helpers": "Helpers",
"Here_is_your_authentication_code": "Here is your authentication code:",
"Hex_Color_Preview": "Hex Color Preview",
@ -1933,6 +1933,7 @@
"Highlights_List": "Highlight words",
"History": "History",
"Host": "Host",
"Hospitality_Businness": "Hospitality Businness",
"hours": "hours",
"Hours": "Hours",
"How_friendly_was_the_chat_agent": "How friendly was the chat agent?",
@ -2161,6 +2162,7 @@
"IssueLinks_LinkTemplate": "Template for issue links",
"IssueLinks_LinkTemplate_Description": "Template for issue links; %s will be replaced by the issue number.",
"It_works": "It works",
"It_Security": "It Security",
"italic": "Italic",
"italics": "italics",
"Items_per_page:": "Items per page:",
@ -3085,7 +3087,6 @@
"Public_Channel": "Public Channel",
"Public_Channels": "Public Channels",
"Public_Community": "Public Community",
"Public_Relations": "Public Relations",
"Public_URL": "Public URL",
"Purchase_for_free": "Purchase for FREE",
"Purchase_for_price": "Purchase for $%s",
@ -3831,7 +3832,6 @@
"totp-disabled": "You do not have 2FA login enabled for your user",
"totp-invalid": "Code or password invalid",
"totp-required": "TOTP Required",
"Tourism": "Tourism",
"Transcript": "Transcript",
"Transcript_Enabled": "Ask Visitor if They Would Like a Transcript After Chat Closed",
"Transcript_message": "Message to Show When Asking About Transcript",
@ -4065,6 +4065,7 @@
"Users_TOTP_has_been_reset": "User's TOTP has been reset",
"Uses": "Uses",
"Uses_left": "Uses left",
"Utilities": "Utilities",
"UTF8_Names_Slugify": "UTF8 Names Slugify",
"UTF8_Names_Validation": "UTF8 Names Validation",
"UTF8_Names_Validation_Description": "RegExp that will be used to validate usernames and channel names",

@ -211,4 +211,5 @@ import './v211';
import './v212';
import './v213';
import './v214';
import './v215';
import './xrun';

@ -0,0 +1,20 @@
import { Migrations } from '../../../app/migrations/server';
import { Settings } from '../../../app/models/server';
const removed = ['advocacy', 'industry', 'publicRelations', 'healthcarePharmaceutical', 'helpCenter'];
Migrations.add({
version: 215,
up() {
const current = Settings.findOneById('Industry');
if (removed.includes(current.value)) {
Settings.update({
_id: 'Industry',
}, {
$set: {
value: 'other',
},
});
}
},
});
Loading…
Cancel
Save