blob: f5456f47410d6fe71c8ba026947ffbc5618d6c14 (
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 AwardsList from '~/vue_shared/components/awards_list.vue';
export default {
components: {
AwardsList,
},
props: {
awards: {
type: Array,
required: true,
},
canAwardEmoji: {
type: Boolean,
required: true,
},
},
computed: {
currentUserId() {
return window.gon.current_user_id;
},
},
};
</script>
<template>
<awards-list
:awards="awards"
:can-award-emoji="canAwardEmoji"
:current-user-id="currentUserId"
class="gl-px-2 gl-mt-5"
@award="$emit('award', $event)"
/>
</template>
|