PLT-6263 Updated timing and text of Site URL warning bar (#6016)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
8dbb297b3e
Коммит
9318ffcdf3
@@ -49,12 +49,12 @@ export default class ErrorBar extends React.Component {
|
|||||||
const errorIgnored = ErrorStore.getIgnoreNotification();
|
const errorIgnored = ErrorStore.getIgnoreNotification();
|
||||||
|
|
||||||
if (!errorIgnored) {
|
if (!errorIgnored) {
|
||||||
if (global.mm_config.SendEmailNotifications === 'false') {
|
if (isSystemAdmin && global.mm_config.SiteURL === '') {
|
||||||
ErrorStore.storeLastError({notification: true, message: Utils.localizeMessage('error_bar.preview_mode', 'Preview Mode: Email notifications have not been configured')});
|
|
||||||
return;
|
|
||||||
} else if (isSystemAdmin && global.mm_config.SiteURL === '') {
|
|
||||||
ErrorStore.storeLastError({notification: true, message: SITE_URL_ERROR});
|
ErrorStore.storeLastError({notification: true, message: SITE_URL_ERROR});
|
||||||
return;
|
return;
|
||||||
|
} else if (global.mm_config.SendEmailNotifications === 'false') {
|
||||||
|
ErrorStore.storeLastError({notification: true, message: Utils.localizeMessage('error_bar.preview_mode', 'Preview Mode: Email notifications have not been configured')});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,10 +178,10 @@ export default class ErrorBar extends React.Component {
|
|||||||
let defaultMessage;
|
let defaultMessage;
|
||||||
if (global.mm_config.EnableSignUpWithGitLab === 'true') {
|
if (global.mm_config.EnableSignUpWithGitLab === 'true') {
|
||||||
id = 'error_bar.site_url_gitlab';
|
id = 'error_bar.site_url_gitlab';
|
||||||
defaultMessage = '{docsLink} is now a required setting. Please configure it in the System Console or in gitlab.rb if you\'re using GitLab Mattermost.';
|
defaultMessage = 'Please configure your {docsLink} in the System Console or in gitlab.rb if you\'re using GitLab Mattermost.';
|
||||||
} else {
|
} else {
|
||||||
id = 'error_bar.site_url';
|
id = 'error_bar.site_url';
|
||||||
defaultMessage = '{docsLink} is now a required setting. Please configure it in {link}.';
|
defaultMessage = 'Please configure your {docsLink} in the System Console.';
|
||||||
}
|
}
|
||||||
|
|
||||||
message = (
|
message = (
|
||||||
|
|||||||
@@ -1304,10 +1304,10 @@
|
|||||||
"error_bar.expiring": "Enterprise license expires on {date}. <a href='{link}' target='_blank'>Please renew.</a>",
|
"error_bar.expiring": "Enterprise license expires on {date}. <a href='{link}' target='_blank'>Please renew.</a>",
|
||||||
"error_bar.past_grace": "Enterprise license is expired and some features may be disabled. Please contact your System Administrator for details.",
|
"error_bar.past_grace": "Enterprise license is expired and some features may be disabled. Please contact your System Administrator for details.",
|
||||||
"error_bar.preview_mode": "Preview Mode: Email notifications have not been configured",
|
"error_bar.preview_mode": "Preview Mode: Email notifications have not been configured",
|
||||||
"error_bar.site_url": "{docsLink} is now a required setting. Please configure it in {link}.",
|
"error_bar.site_url": "Please configure your {docsLink} in the {link}.",
|
||||||
"error_bar.site_url.docsLink": "Site URL",
|
"error_bar.site_url.docsLink": "Site URL",
|
||||||
"error_bar.site_url.link": "the System Console",
|
"error_bar.site_url.link": "System Console",
|
||||||
"error_bar.site_url_gitlab": "{docsLink} is now a required setting. Please configure it in the System Console or in gitlab.rb if you're using GitLab Mattermost.",
|
"error_bar.site_url_gitlab": "Please configure your {docsLink} in the System Console or in gitlab.rb if you're using GitLab Mattermost.",
|
||||||
"file_attachment.download": "Download",
|
"file_attachment.download": "Download",
|
||||||
"file_info_preview.size": "Size ",
|
"file_info_preview.size": "Size ",
|
||||||
"file_info_preview.type": "File type ",
|
"file_info_preview.type": "File type ",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user