diff --git a/config/default.json b/config/default.json index e7e67855ada..7f03e035bb3 100644 --- a/config/default.json +++ b/config/default.json @@ -120,7 +120,8 @@ "AmazonS3Region": "us-east-1", "AmazonS3Endpoint": "s3.amazonaws.com", "AmazonS3SSL": true, - "AmazonS3SignV2": false + "AmazonS3SignV2": false, + "AmazonS3SSE": false }, "EmailSettings": { "EnableSignUpWithEmail": true, @@ -165,9 +166,6 @@ "AboutLink": "https://about.mattermost.com/default-about/", "HelpLink": "https://about.mattermost.com/default-help/", "ReportAProblemLink": "https://about.mattermost.com/default-report-a-problem/", - "AdministratorsGuideLink": "https://about.mattermost.com/administrators-guide/", - "TroubleshootingForumLink": "https://about.mattermost.com/troubleshooting-forum/", - "CommercialSupportLink": "https://about.mattermost.com/commercial-support/", "SupportEmail": "feedback@mattermost.com" }, "AnnouncementSettings": { @@ -310,4 +308,4 @@ "PluginSettings": { "Plugins": {} } -} \ No newline at end of file +} diff --git a/model/config.go b/model/config.go index 9906723e79e..b3365a49a4a 100644 --- a/model/config.go +++ b/model/config.go @@ -310,15 +310,12 @@ type PrivacySettings struct { } type SupportSettings struct { - TermsOfServiceLink *string - PrivacyPolicyLink *string - AboutLink *string - HelpLink *string - ReportAProblemLink *string - AdministratorsGuideLink *string - TroubleshootingForumLink *string - CommercialSupportLink *string - SupportEmail *string + TermsOfServiceLink *string + PrivacyPolicyLink *string + AboutLink *string + HelpLink *string + ReportAProblemLink *string + SupportEmail *string } type AnnouncementSettings struct { @@ -889,33 +886,6 @@ func (o *Config) SetDefaults() { *o.SupportSettings.ReportAProblemLink = SUPPORT_SETTINGS_DEFAULT_REPORT_A_PROBLEM_LINK } - if !IsSafeLink(o.SupportSettings.AdministratorsGuideLink) { - *o.SupportSettings.AdministratorsGuideLink = "" - } - - if o.SupportSettings.AdministratorsGuideLink == nil { - o.SupportSettings.AdministratorsGuideLink = new(string) - *o.SupportSettings.AdministratorsGuideLink = SUPPORT_SETTINGS_DEFAULT_ADMINISTRATORS_GUIDE_LINK - } - - if !IsSafeLink(o.SupportSettings.TroubleshootingForumLink) { - *o.SupportSettings.TroubleshootingForumLink = "" - } - - if o.SupportSettings.TroubleshootingForumLink == nil { - o.SupportSettings.TroubleshootingForumLink = new(string) - *o.SupportSettings.TroubleshootingForumLink = SUPPORT_SETTINGS_DEFAULT_TROUBLESHOOTING_FORUM_LINK - } - - if !IsSafeLink(o.SupportSettings.CommercialSupportLink) { - *o.SupportSettings.CommercialSupportLink = "" - } - - if o.SupportSettings.CommercialSupportLink == nil { - o.SupportSettings.CommercialSupportLink = new(string) - *o.SupportSettings.CommercialSupportLink = SUPPORT_SETTINGS_DEFAULT_COMMERCIAL_SUPPORT_LINK - } - if o.SupportSettings.SupportEmail == nil { o.SupportSettings.SupportEmail = new(string) *o.SupportSettings.SupportEmail = SUPPORT_SETTINGS_DEFAULT_SUPPORT_EMAIL diff --git a/utils/config.go b/utils/config.go index af15c5e93f3..54d768f644c 100644 --- a/utils/config.go +++ b/utils/config.go @@ -471,9 +471,6 @@ func getClientConfig(c *model.Config) map[string]string { props["AboutLink"] = *c.SupportSettings.AboutLink props["HelpLink"] = *c.SupportSettings.HelpLink props["ReportAProblemLink"] = *c.SupportSettings.ReportAProblemLink - props["AdministratorsGuideLink"] = *c.SupportSettings.AdministratorsGuideLink - props["TroubleshootingForumLink"] = *c.SupportSettings.TroubleshootingForumLink - props["CommercialSupportLink"] = *c.SupportSettings.CommercialSupportLink props["SupportEmail"] = *c.SupportSettings.SupportEmail props["EnableFileAttachments"] = strconv.FormatBool(*c.FileSettings.EnableFileAttachments) diff --git a/webapp/components/admin_console/admin_navbar_dropdown.jsx b/webapp/components/admin_console/admin_navbar_dropdown.jsx index d46732d40f2..6ef4906f56f 100644 --- a/webapp/components/admin_console/admin_navbar_dropdown.jsx +++ b/webapp/components/admin_console/admin_navbar_dropdown.jsx @@ -67,9 +67,8 @@ export default class AdminNavbarDropdown extends React.Component { } render() { - const config = global.window.mm_config; - var teamsArray = []; // Array of team objects - var teams = []; // Array of team components + var teamsArray = []; // Array of team objects + var teams = []; // Array of team components let switchTeams; if (this.state.teamMembers && this.state.teamMembers.length > 0) { @@ -154,7 +153,7 @@ export default class AdminNavbarDropdown extends React.Component { />
  • @@ -166,7 +165,7 @@ export default class AdminNavbarDropdown extends React.Component {
  • @@ -178,7 +177,7 @@ export default class AdminNavbarDropdown extends React.Component {