Commit a9f1ef27 authored by George Tsiolis's avatar George Tsiolis Committed by Clement Ho

Add link component to user avatar link component

parent c9375e63
......@@ -18,12 +18,14 @@
*/
import { Link } from '@gitlab-org/gitlab-ui';
import userAvatarImage from './user_avatar_image.vue';
import tooltip from '../../directives/tooltip';
export default {
name: 'UserAvatarLink',
components: {
'gl-link': Link,
userAvatarImage,
},
directives: {
......@@ -83,7 +85,7 @@ export default {
</script>
<template>
<a
<gl-link
:href="linkHref"
class="user-avatar-link">
<user-avatar-image
......@@ -99,5 +101,5 @@ export default {
:title="tooltipText"
:tooltip-placement="tooltipPlacement"
>{{ username }}</span>
</a>
</gl-link>
</template>
---
title: Add link component to UserAvatarLink component
merge_request: 21986
author: George Tsiolis
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment