2021-12-11 22:18:48 +05:30
|
|
|
import { s__, __ } from '~/locale';
|
2020-11-24 15:15:51 +05:30
|
|
|
|
|
|
|
export const integrationLevels = {
|
2022-05-07 20:08:51 +05:30
|
|
|
PROJECT: 'project',
|
2020-11-24 15:15:51 +05:30
|
|
|
GROUP: 'group',
|
|
|
|
INSTANCE: 'instance',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const defaultIntegrationLevel = integrationLevels.INSTANCE;
|
|
|
|
|
|
|
|
export const overrideDropdownDescriptions = {
|
|
|
|
[integrationLevels.GROUP]: s__(
|
|
|
|
'Integrations|Default settings are inherited from the group level.',
|
|
|
|
),
|
|
|
|
[integrationLevels.INSTANCE]: s__(
|
|
|
|
'Integrations|Default settings are inherited from the instance level.',
|
|
|
|
),
|
|
|
|
};
|
2021-12-11 22:18:48 +05:30
|
|
|
|
|
|
|
export const I18N_FETCH_TEST_SETTINGS_DEFAULT_ERROR_MESSAGE = s__(
|
|
|
|
'Integrations|Connection failed. Please check your settings.',
|
|
|
|
);
|
|
|
|
export const I18N_DEFAULT_ERROR_MESSAGE = __('Something went wrong on our end.');
|
|
|
|
export const I18N_SUCCESSFUL_CONNECTION_MESSAGE = s__('Integrations|Connection successful.');
|
2022-03-02 08:16:31 +05:30
|
|
|
|
|
|
|
export const settingsTabTitle = __('Settings');
|
|
|
|
export const overridesTabTitle = s__('Integrations|Projects using custom settings');
|
2022-05-07 20:08:51 +05:30
|
|
|
|
|
|
|
export const integrationFormSections = {
|
|
|
|
CONNECTION: 'connection',
|
|
|
|
JIRA_TRIGGER: 'jira_trigger',
|
|
|
|
JIRA_ISSUES: 'jira_issues',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const integrationFormSectionComponents = {
|
|
|
|
[integrationFormSections.CONNECTION]: 'IntegrationSectionConnection',
|
|
|
|
[integrationFormSections.JIRA_TRIGGER]: 'IntegrationSectionJiraTrigger',
|
|
|
|
[integrationFormSections.JIRA_ISSUES]: 'IntegrationSectionJiraIssues',
|
|
|
|
};
|