diff options
Diffstat (limited to 'app/assets/javascripts/issues/show/constants.js')
-rw-r--r-- | app/assets/javascripts/issues/show/constants.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/issues/show/constants.js b/app/assets/javascripts/issues/show/constants.js new file mode 100644 index 00000000000..35f3bcdad70 --- /dev/null +++ b/app/assets/javascripts/issues/show/constants.js @@ -0,0 +1,22 @@ +import { __ } from '~/locale'; + +export const IssueStateEvent = { + Close: 'CLOSE', + Reopen: 'REOPEN', +}; + +export const STATUS_PAGE_PUBLISHED = __('Published on status page'); +export const JOIN_ZOOM_MEETING = __('Join Zoom meeting'); + +export const IssuableTypes = [ + { value: 'issue', text: __('Issue'), icon: 'issue-type-issue' }, + { value: 'incident', text: __('Incident'), icon: 'issue-type-incident' }, +]; + +export const IssueTypePath = 'issues'; +export const IncidentTypePath = 'issues/incident'; +export const IncidentType = 'incident'; + +export const issueState = { issueType: undefined, isDirty: false }; + +export const POLLING_DELAY = 2000; |