Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | 2x 4x | <script> import Assignee from 'ee/external_issues_show/components/sidebar/assignee.vue'; import IssueDueDate from 'ee/external_issues_show/components/sidebar/issue_due_date.vue'; import IssueField from 'ee/external_issues_show/components/sidebar/issue_field.vue'; import { s__, __ } from '~/locale'; import LabelsSelect from '~/sidebar/components/labels/labels_select_vue/labels_select_root.vue'; export default { name: 'ZentaoIssuesSidebar', components: { Assignee, IssueDueDate, IssueField, LabelsSelect, }, props: { issue: { type: Object, required: true, }, }, computed: { assignee() { // Zentao issues have at most 1 assignee return (this.issue.assignees || [])[0]; }, reference() { return this.issue.references?.relative; }, }, i18n: { statusTitle: __('Status'), referenceName: __('Reference'), avatarSubLabel: s__('ZenTaoIntegration|ZenTao user'), }, }; </script> <template> <div> <assignee class="block" :assignee="assignee" :avatar-sub-label="$options.i18n.avatarSubLabel" /> <issue-due-date :due-date="issue.dueDate" /> <issue-field icon="progress" :title="$options.i18n.statusTitle" :value="issue.status" /> <labels-select :allow-scoped-labels="true" :selected-labels="issue.labels" variant="sidebar" class="block labels" > {{ __('None') }} </labels-select> </div> </template> |