debian-mirror-gitlab/app/assets/javascripts/jobs/constants.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-01-29 00:20:46 +05:30
import { __, s__ } from '~/locale';
const cancel = __('Cancel');
const moreInfo = __('More information');
2022-10-11 01:57:18 +05:30
export const forwardDeploymentFailureModalId = 'forward-deployment-failure';
2023-03-04 22:38:38 +05:30
export const GRAPHQL_ID_TYPES = {
commitStatus: 'CommitStatus',
ciBuild: 'Ci::Build',
};
2022-10-11 01:57:18 +05:30
export const JOB_SIDEBAR_COPY = {
2021-01-29 00:20:46 +05:30
cancel,
2022-10-11 01:57:18 +05:30
cancelJobButtonLabel: s__('Job|Cancel'),
2021-01-29 00:20:46 +05:30
debug: __('Debug'),
2022-10-11 01:57:18 +05:30
eraseLogButtonLabel: s__('Job|Erase job log and artifacts'),
eraseLogConfirmText: s__('Job|Are you sure you want to erase this job log and artifacts?'),
2021-01-29 00:20:46 +05:30
newIssue: __('New issue'),
2023-03-04 22:38:38 +05:30
retryJobLabel: s__('Job|Retry'),
2021-01-29 00:20:46 +05:30
toggleSidebar: __('Toggle Sidebar'),
2023-01-13 00:05:48 +05:30
runAgainJobButtonLabel: s__('Job|Run again'),
2023-03-04 22:38:38 +05:30
updateVariables: s__('Job|Update CI/CD variables'),
};
export const JOB_GRAPHQL_ERRORS = {
retryMutationErrorText: __('There was an error running the job. Please try again.'),
jobQueryErrorText: __('There was an error fetching the job.'),
2021-01-29 00:20:46 +05:30
};
export const JOB_RETRY_FORWARD_DEPLOYMENT_MODAL = {
cancel,
info: s__(
`Jobs|You're about to retry a job that failed because it attempted to deploy code that is older than the latest deployment.
Retrying this job could result in overwriting the environment with the older source code.`,
),
areYouSure: s__('Jobs|Are you sure you want to proceed?'),
moreInfo,
primaryText: __('Retry job'),
title: s__('Jobs|Are you sure you want to retry this job?'),
};
2021-06-08 01:23:25 +05:30
export const SUCCESS_STATUS = 'SUCCESS';
2023-03-04 22:38:38 +05:30
export const PASSED_STATUS = 'passed';