PLT-7417/PLT-7425 (#7278)
PLT-7417/PLT-7425 Update config.json defaults and removed admin console link settings
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a360ac6dbd
Коммит
086365fb84
@@ -120,7 +120,8 @@
|
|||||||
"AmazonS3Region": "us-east-1",
|
"AmazonS3Region": "us-east-1",
|
||||||
"AmazonS3Endpoint": "s3.amazonaws.com",
|
"AmazonS3Endpoint": "s3.amazonaws.com",
|
||||||
"AmazonS3SSL": true,
|
"AmazonS3SSL": true,
|
||||||
"AmazonS3SignV2": false
|
"AmazonS3SignV2": false,
|
||||||
|
"AmazonS3SSE": false
|
||||||
},
|
},
|
||||||
"EmailSettings": {
|
"EmailSettings": {
|
||||||
"EnableSignUpWithEmail": true,
|
"EnableSignUpWithEmail": true,
|
||||||
@@ -165,9 +166,6 @@
|
|||||||
"AboutLink": "https://about.mattermost.com/default-about/",
|
"AboutLink": "https://about.mattermost.com/default-about/",
|
||||||
"HelpLink": "https://about.mattermost.com/default-help/",
|
"HelpLink": "https://about.mattermost.com/default-help/",
|
||||||
"ReportAProblemLink": "https://about.mattermost.com/default-report-a-problem/",
|
"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"
|
"SupportEmail": "feedback@mattermost.com"
|
||||||
},
|
},
|
||||||
"AnnouncementSettings": {
|
"AnnouncementSettings": {
|
||||||
@@ -310,4 +308,4 @@
|
|||||||
"PluginSettings": {
|
"PluginSettings": {
|
||||||
"Plugins": {}
|
"Plugins": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -310,15 +310,12 @@ type PrivacySettings struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SupportSettings struct {
|
type SupportSettings struct {
|
||||||
TermsOfServiceLink *string
|
TermsOfServiceLink *string
|
||||||
PrivacyPolicyLink *string
|
PrivacyPolicyLink *string
|
||||||
AboutLink *string
|
AboutLink *string
|
||||||
HelpLink *string
|
HelpLink *string
|
||||||
ReportAProblemLink *string
|
ReportAProblemLink *string
|
||||||
AdministratorsGuideLink *string
|
SupportEmail *string
|
||||||
TroubleshootingForumLink *string
|
|
||||||
CommercialSupportLink *string
|
|
||||||
SupportEmail *string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type AnnouncementSettings struct {
|
type AnnouncementSettings struct {
|
||||||
@@ -889,33 +886,6 @@ func (o *Config) SetDefaults() {
|
|||||||
*o.SupportSettings.ReportAProblemLink = SUPPORT_SETTINGS_DEFAULT_REPORT_A_PROBLEM_LINK
|
*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 {
|
if o.SupportSettings.SupportEmail == nil {
|
||||||
o.SupportSettings.SupportEmail = new(string)
|
o.SupportSettings.SupportEmail = new(string)
|
||||||
*o.SupportSettings.SupportEmail = SUPPORT_SETTINGS_DEFAULT_SUPPORT_EMAIL
|
*o.SupportSettings.SupportEmail = SUPPORT_SETTINGS_DEFAULT_SUPPORT_EMAIL
|
||||||
|
|||||||
@@ -471,9 +471,6 @@ func getClientConfig(c *model.Config) map[string]string {
|
|||||||
props["AboutLink"] = *c.SupportSettings.AboutLink
|
props["AboutLink"] = *c.SupportSettings.AboutLink
|
||||||
props["HelpLink"] = *c.SupportSettings.HelpLink
|
props["HelpLink"] = *c.SupportSettings.HelpLink
|
||||||
props["ReportAProblemLink"] = *c.SupportSettings.ReportAProblemLink
|
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["SupportEmail"] = *c.SupportSettings.SupportEmail
|
||||||
|
|
||||||
props["EnableFileAttachments"] = strconv.FormatBool(*c.FileSettings.EnableFileAttachments)
|
props["EnableFileAttachments"] = strconv.FormatBool(*c.FileSettings.EnableFileAttachments)
|
||||||
|
|||||||
@@ -67,9 +67,8 @@ export default class AdminNavbarDropdown extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const config = global.window.mm_config;
|
var teamsArray = []; // Array of team objects
|
||||||
var teamsArray = []; // Array of team objects
|
var teams = []; // Array of team components
|
||||||
var teams = []; // Array of team components
|
|
||||||
let switchTeams;
|
let switchTeams;
|
||||||
|
|
||||||
if (this.state.teamMembers && this.state.teamMembers.length > 0) {
|
if (this.state.teamMembers && this.state.teamMembers.length > 0) {
|
||||||
@@ -154,7 +153,7 @@ export default class AdminNavbarDropdown extends React.Component {
|
|||||||
/>
|
/>
|
||||||
<li>
|
<li>
|
||||||
<Link
|
<Link
|
||||||
to={config.AdministratorsGuideLink}
|
to='https://about.mattermost.com/administrators-guide/'
|
||||||
rel='noopener noreferrer'
|
rel='noopener noreferrer'
|
||||||
target='_blank'
|
target='_blank'
|
||||||
>
|
>
|
||||||
@@ -166,7 +165,7 @@ export default class AdminNavbarDropdown extends React.Component {
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link
|
<Link
|
||||||
to={config.TroubleshootingForumLink}
|
to='https://about.mattermost.com/troubleshooting-forum/'
|
||||||
rel='noopener noreferrer'
|
rel='noopener noreferrer'
|
||||||
target='_blank'
|
target='_blank'
|
||||||
>
|
>
|
||||||
@@ -178,7 +177,7 @@ export default class AdminNavbarDropdown extends React.Component {
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link
|
<Link
|
||||||
to={config.CommercialSupportLink}
|
to='https://about.mattermost.com/commercial-support/'
|
||||||
rel='noopener noreferrer'
|
rel='noopener noreferrer'
|
||||||
target='_blank'
|
target='_blank'
|
||||||
>
|
>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user