2021-10-26 08:12:11 -04:00
|
|
|
import { s__, __ } from '~/locale';
|
2021-10-11 08:11:56 -04:00
|
|
|
|
|
|
|
export const integrationLevels = {
|
2022-03-02 16:16:54 -05:00
|
|
|
PROJECT: 'project',
|
2021-10-11 08:11:56 -04:00
|
|
|
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-10-26 08:12:11 -04:00
|
|
|
|
|
|
|
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.');
|
2021-12-21 01:13:16 -05:00
|
|
|
|
|
|
|
export const settingsTabTitle = __('Settings');
|
|
|
|
export const overridesTabTitle = s__('Integrations|Projects using custom settings');
|
2022-03-07 19:15:27 -05:00
|
|
|
|
|
|
|
export const integrationFormSections = {
|
|
|
|
CONNECTION: 'connection',
|
2022-03-14 08:07:59 -04:00
|
|
|
JIRA_TRIGGER: 'jira_trigger',
|
|
|
|
JIRA_ISSUES: 'jira_issues',
|
2022-03-07 19:15:27 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
export const integrationFormSectionComponents = {
|
|
|
|
[integrationFormSections.CONNECTION]: 'IntegrationSectionConnection',
|
2022-03-14 08:07:59 -04:00
|
|
|
[integrationFormSections.JIRA_TRIGGER]: 'IntegrationSectionJiraTrigger',
|
|
|
|
[integrationFormSections.JIRA_ISSUES]: 'IntegrationSectionJiraIssues',
|
2022-03-07 19:15:27 -05:00
|
|
|
};
|