Commit c5e1b0f9 authored by Dhiraj Bodicherla's avatar Dhiraj Bodicherla

Moved canary to constants

parent 70cea8f1
......@@ -12,8 +12,8 @@
import _ from 'underscore';
import { GlLoadingIcon, GlLink, GlTooltipDirective } from '@gitlab/ui';
import deployBoardSvg from 'ee_empty_states/icons/_deploy_board.svg';
import { __, n__, s__, sprintf } from '~/locale';
import STATUS_MAP from '../constants';
import { n__, s__, sprintf } from '~/locale';
import { STATUS_MAP, CANARY_STATUS } from '../constants';
export default {
components: {
......@@ -101,11 +101,7 @@ export default {
// Hence adding it here.
return {
...STATUS_MAP,
canary: {
class: 'canary-icon',
text: __('Canary'),
stable: false,
},
CANARY_STATUS,
};
},
},
......
......@@ -3,7 +3,7 @@ import { __ } from '~/locale';
// These statuses are based on how the backend defines pod phases here
// lib/gitlab/kubernetes/pod.rb
const STATUS_MAP = {
export const STATUS_MAP = {
succeeded: {
class: 'succeeded',
text: __('Succeeded'),
......@@ -31,4 +31,8 @@ const STATUS_MAP = {
},
};
export default STATUS_MAP;
export const CANARY_STATUS = {
class: 'canary-icon',
text: __('Canary'),
stable: false,
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment