Skip to content

Commit

Permalink
[4.3] MACT-81: Correct help labels and hide sales rep (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillegr123 committed Oct 2, 2020
1 parent a1729ba commit 5ec2519
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
24 changes: 13 additions & 11 deletions i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@
"help": {
"accountName": "The name of the account should be unique system-wide.",
"accountRealm": "A custom account realm can be set. However, it will be auto-generated if left empty.",
"whitelabeledAccountRealm": "The account realm has been auto-generated. However it can be edited if required, but must not be left empty.",
"addressLine1": "Primary service address."
"whitelabeledAccountRealm": "The account realm has been auto-generated. However it can be edited if required, but must not be left empty."
},
"placeholders": {
"accountRealm": "Auto-generated realm",
Expand Down Expand Up @@ -522,15 +521,18 @@
"user": "User"
},
"help": {
"account": "Allows users to view/change account name, account realm, technical contact, account timezone/language preferences...",
"balance": "Allows users to view the \"Per Minute\" tab of Usage Charges.",
"billing": "Allows users to view/change the card on file and billing contact.",
"credit": "Allows users to view the \"Credit Info\" tab in their Control Center.",
"error_tracker": "Allows users to view the UI Errors log, which may be beneficial for troubleshooting.",
"minutes": "Allows users to view the \"Minutes Info\" tab in their Control Center.",
"service_plan": "Allows users to view/download a copy of the Service Plan applied to the account.",
"transactions": "Allows users to view the Transactions log.",
"user": "Allows users to view/change their passwords, timezone & language preferences, date/time display, colorblind mode, and more..."
"account": "Allow users to view/change account name, account realm, technical contact and account timezone/language preferences.",
"balance": "Allow users to view the \"Per Minute\" tab of Usage Charges.",
"billing": "Allow users to view/change the card on file and billing contact.",
"credit": "Allow users to view the \"Credit Info\" tab in their Control Center.",
"errorTracker": "Allow users to view list of UI Error Logs and send error reports.",
"inbound": "Allow users to configure inbound trunking limits.",
"minutes": "Allow users to view the \"Minutes Info\" tab in their Control Center.",
"outbound": "Allow users to configure outbound trunking limits.",
"service_plan": "Allow users to view/download a copy of the Service Plan applied to the account.",
"transactions": "Allow users to view the Transactions log.",
"twoway": "Allow users to configure two way trunking limits.",
"user": "Allow users to view/change their passwords, timezone & language preferences, date/time display, colorblind mode, and more."
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions submodules/wizard/wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ define(function(require) {
}
]
},
hideSalesRepSection: true, // Hide sales representative section temporarily
stepNames: [
'generalSettings',
'accountContacts',
Expand Down Expand Up @@ -647,9 +648,10 @@ define(function(require) {

monster.waterfall([
function(waterfallCallback) {
var resellerAccountId = self.wizardGetStore('resellerAccountId');
var hideSalesRepSection = self.appFlags.wizard.hideSalesRepSection,
resellerAccountId = self.wizardGetStore('resellerAccountId');

if (!resellerAccountId) {
if (hideSalesRepSection || !resellerAccountId) {
return waterfallCallback(null, []);
}

Expand Down

0 comments on commit 5ec2519

Please sign in to comment.