mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* MM-67771 Update Report a Problem to email flow for licensed servers Change the default "Report a Problem" behavior for licensed servers to open a mailto link to [email protected] with pre-filled metadata instead of redirecting to the support portal. Unlicensed servers continue to redirect to the troubleshooting forums. Admin console help text is now license-aware with separate descriptions for each plan type. * Add isFreeEdition check for Report a Problem flow Treat both unlicensed servers and licensed servers with entry SKU as free edition. This affects the Report a Problem default behavior (forum redirect vs mailto) and the admin console help text shown. - Add isFreeEdition to general.ts selectors and admin_definition_helpers - Add SKUEntry constant to general constants - Reuse isFreeEdition in product_menu.tsx - Add entry SKU test case for report_a_problem * Add the link to forums for free edition * Add permission and restricted-mode guards to ReportAProblemType dropdown The ReportAProblemType dropdown was missing the write-permission check and RestrictSystemAdmin guard that all other fields in the section have.
59 lines
1.5 KiB
JavaScript
59 lines
1.5 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export const FEEDBACK_EMAIL = '[email protected]';
|
|
export const ABOUT_LINK = 'https://mattermost.com/pl/about-mattermost';
|
|
export const ASK_COMMUNITY_LINK = 'https://mattermost.com/pl/default-ask-mattermost-community/';
|
|
export const HELP_LINK = 'https://mattermost.com/pl/help/';
|
|
export const PRIVACY_POLICY_LINK = 'https://mattermost.com/pl/privacy-policy/';
|
|
export const TERMS_OF_SERVICE_LINK = 'https://mattermost.com/pl/terms-of-use/';
|
|
export const MATTERMOST_USER_GUIDE = 'https://docs.mattermost.com/guides/use-mattermost.html';
|
|
|
|
export const CLOUD = 'Cloud';
|
|
export const E20 = 'E20';
|
|
export const TEAM = 'Team';
|
|
|
|
export const FixedPublicLinks = {
|
|
TermsOfService: 'https://mattermost.com/pl/terms-of-use/',
|
|
PrivacyPolicy: 'https://mattermost.com/pl/privacy-policy/',
|
|
};
|
|
|
|
export const SupportSettings = {
|
|
ABOUT_LINK,
|
|
ASK_COMMUNITY_LINK,
|
|
HELP_LINK,
|
|
PRIVACY_POLICY_LINK,
|
|
TERMS_OF_SERVICE_LINK,
|
|
MATTERMOST_USER_GUIDE,
|
|
};
|
|
|
|
export const FixedCloudConfig = {
|
|
EmailSettings: {
|
|
FEEDBACK_EMAIL,
|
|
},
|
|
SupportSettings,
|
|
};
|
|
|
|
export const ServerEdition = {
|
|
CLOUD,
|
|
E20,
|
|
TEAM,
|
|
};
|
|
|
|
export const Constants = {
|
|
FixedCloudConfig,
|
|
ServerEdition,
|
|
};
|
|
|
|
export const CustomStatusDuration = {
|
|
DONT_CLEAR: '',
|
|
THIRTY_MINUTES: 'thirty_minutes',
|
|
ONE_HOUR: 'one_hour',
|
|
FOUR_HOURS: 'four_hours',
|
|
TODAY: 'today',
|
|
THIS_WEEK: 'this_week',
|
|
DATE_AND_TIME: 'date_and_time',
|
|
};
|
|
|
|
export default Constants;
|