Commit f2d0f4ce authored by Clement Ho's avatar Clement Ho

Add translations for open and closed state

parent 3bfb4be6
<script> <script>
import { __ } from '~/locale';
import relatedIssueMixin from '../mixins/related_issues_mixin'; import relatedIssueMixin from '../mixins/related_issues_mixin';
export default { export default {
...@@ -13,7 +14,7 @@ export default { ...@@ -13,7 +14,7 @@ export default {
}, },
computed: { computed: {
stateTitle() { stateTitle() {
return this.isOpen ? 'Open' : 'Closed'; return this.isOpen ? __('Open') : __('Closed');
}, },
}, },
}; };
......
<script> <script>
import { __ } from '~/locale';
import relatedIssueMixin from '../mixins/related_issues_mixin'; import relatedIssueMixin from '../mixins/related_issues_mixin';
export default { export default {
...@@ -18,7 +19,7 @@ export default { ...@@ -18,7 +19,7 @@ export default {
stateTitle() { stateTitle() {
if (this.isCondensed) return ''; if (this.isCondensed) return '';
return this.isOpen ? 'Open' : 'Closed'; return this.isOpen ? __('Open') : __('Closed');
}, },
innerComponentType() { innerComponentType() {
return this.isCondensed ? 'span' : 'div'; return this.isCondensed ? 'span' : 'div';
......
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