blob: 701126b4a7487711b2782c1e62375611f9926b08 (
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
35
36
37
38
39
40
41
42
43
44
|
<script>
import { s__ } from '~/locale';
import ContributionEventBase from './contribution_event_base.vue';
export default {
name: 'ContributionEventLeft',
i18n: {
message: s__('ContributionEvent|Left project %{resourceParentLink}.'),
},
components: { ContributionEventBase },
props: {
/**
* Expected format
* {
* created_at: string;
* action: "left"
* author: {
* id: number;
* username: string;
* name: string;
* state: string;
* avatar_url: string;
* web_url: string;
* };
* resource_parent: {
* type: "project";
* full_name: string;
* full_path: string;
* web_url: string;
* avatar_url: string;
* };
* };
*/
event: {
type: Object,
required: true,
},
},
};
</script>
<template>
<contribution-event-base :event="event" :message="$options.i18n.message" icon-name="leave" />
</template>
|