diff options
Diffstat (limited to 'app/assets/javascripts/issues/constants.js')
-rw-r--r-- | app/assets/javascripts/issues/constants.js | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/app/assets/javascripts/issues/constants.js b/app/assets/javascripts/issues/constants.js index 4b9a42da178..ba05dd731f7 100644 --- a/app/assets/javascripts/issues/constants.js +++ b/app/assets/javascripts/issues/constants.js @@ -1,22 +1,27 @@ import { __ } from '~/locale'; -export const IssuableStatus = { - Closed: 'closed', - Open: 'opened', - Reopened: 'reopened', -}; +export const STATUS_CLOSED = 'closed'; +export const STATUS_OPEN = 'opened'; +export const STATUS_REOPENED = 'reopened'; + +export const TITLE_LENGTH_MAX = 255; + +export const TYPE_EPIC = 'epic'; +export const TYPE_ISSUE = 'issue'; export const IssuableStatusText = { - [IssuableStatus.Closed]: __('Closed'), - [IssuableStatus.Open]: __('Open'), - [IssuableStatus.Reopened]: __('Open'), + [STATUS_CLOSED]: __('Closed'), + [STATUS_OPEN]: __('Open'), + [STATUS_REOPENED]: __('Open'), }; +// Deprecated - use individual constants instead like `TYPE_ISSUE` above export const IssuableType = { Issue: 'issue', Epic: 'epic', MergeRequest: 'merge_request', Alert: 'alert', + TestCase: 'test_case', }; export const IssueType = { |