diff options
Diffstat (limited to 'app/assets/javascripts/kubernetes_dashboard/constants.js')
-rw-r--r-- | app/assets/javascripts/kubernetes_dashboard/constants.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/kubernetes_dashboard/constants.js b/app/assets/javascripts/kubernetes_dashboard/constants.js new file mode 100644 index 00000000000..2aeb2a4c113 --- /dev/null +++ b/app/assets/javascripts/kubernetes_dashboard/constants.js @@ -0,0 +1,13 @@ +import { s__ } from '~/locale'; + +export const PHASE_RUNNING = 'Running'; +export const PHASE_PENDING = 'Pending'; +export const PHASE_SUCCEEDED = 'Succeeded'; +export const PHASE_FAILED = 'Failed'; + +export const STATUS_LABELS = { + [PHASE_RUNNING]: s__('KubernetesDashboard|Running'), + [PHASE_PENDING]: s__('KubernetesDashboard|Pending'), + [PHASE_SUCCEEDED]: s__('KubernetesDashboard|Succeeded'), + [PHASE_FAILED]: s__('KubernetesDashboard|Failed'), +}; |