diff options
Diffstat (limited to 'app/assets/javascripts/contribution_events/components/resource_parent_link.vue')
-rw-r--r-- | app/assets/javascripts/contribution_events/components/resource_parent_link.vue | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/contribution_events/components/resource_parent_link.vue b/app/assets/javascripts/contribution_events/components/resource_parent_link.vue new file mode 100644 index 00000000000..5add9d788bb --- /dev/null +++ b/app/assets/javascripts/contribution_events/components/resource_parent_link.vue @@ -0,0 +1,22 @@ +<script> +import { GlLink } from '@gitlab/ui'; + +export default { + components: { GlLink }, + props: { + event: { + type: Object, + required: true, + }, + }, + computed: { + resourceParent() { + return this.event.resource_parent; + }, + }, +}; +</script> + +<template> + <gl-link :href="resourceParent.web_url">{{ resourceParent.full_name }}</gl-link> +</template> |