blob: a135dfdca72d3f8cbd542536d9c32be0ca85e268 (
plain)
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
|
<script>
import { getIdFromGraphQLId } from '~/graphql_shared/utils';
import { state } from './sidebar_reviewers.vue';
export default {
data() {
return state;
},
computed: {
reviewers() {
return this.issuable?.reviewers?.nodes || [];
},
},
methods: {
getIdFromGraphQLId,
},
};
</script>
<template>
<div>
<input
v-for="reviewer in reviewers"
:key="reviewer.id"
type="hidden"
name="merge_request[reviewer_ids][]"
:value="getIdFromGraphQLId(reviewer.id)"
:data-avatar-url="reviewer.avatarUrl"
:data-name="reviewer.name"
:data-username="reviewer.username"
:data-can-merge="reviewer.mergeRequestInteraction.canMerge"
/>
</div>
</template>
|