Commit 81647436 authored by Scott Hampton's avatar Scott Hampton

Move unknown status to constant

Make test issue status icon backup string
use a constant.
parent 460c7034
...@@ -3,6 +3,7 @@ import { GlBadge, GlButton } from '@gitlab/ui'; ...@@ -3,6 +3,7 @@ import { GlBadge, GlButton } from '@gitlab/ui';
import { mapActions } from 'vuex'; import { mapActions } from 'vuex';
import { sprintf, n__ } from '~/locale'; import { sprintf, n__ } from '~/locale';
import IssueStatusIcon from '~/reports/components/issue_status_icon.vue'; import IssueStatusIcon from '~/reports/components/issue_status_icon.vue';
import { STATUS_NEUTRAL } from '../constants';
export default { export default {
name: 'TestIssueBody', name: 'TestIssueBody',
...@@ -32,7 +33,7 @@ export default { ...@@ -32,7 +33,7 @@ export default {
return this.issue.recent_failures?.count && this.issue.recent_failures?.base_branch; return this.issue.recent_failures?.count && this.issue.recent_failures?.base_branch;
}, },
status() { status() {
return this.issue.status || 'unknown'; return this.issue.status || STATUS_NEUTRAL;
}, },
}, },
methods: { methods: {
......
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