提交 833cb6e9 编写于 作者: F Filipa Lacerda

Merge branch 'gt-remove-tooltip-directive-on-project-avatar-image-component' into 'master'

Remove tooltip directive on project avatar image component

Closes #51990

See merge request gitlab-org/gitlab-ce!29631
......@@ -17,13 +17,9 @@
import defaultAvatarUrl from 'images/no_avatar.png';
import { placeholderImage } from '../../../lazy_loader';
import tooltip from '../../directives/tooltip';
export default {
name: 'ProjectAvatarImage',
directives: {
tooltip,
},
props: {
lazy: {
type: Boolean,
......@@ -50,16 +46,6 @@ export default {
required: false,
default: 20,
},
tooltipText: {
type: String,
required: false,
default: '',
},
tooltipPlacement: {
type: String,
required: false,
default: 'top',
},
},
computed: {
// API response sends null when gravatar is disabled and
......@@ -71,9 +57,6 @@ export default {
resultantSrcAttribute() {
return this.lazy ? placeholderImage : this.sanitizedSource;
},
tooltipContainer() {
return this.tooltipText ? 'body' : null;
},
avatarSizeClass() {
return `s${this.size}`;
},
......@@ -83,7 +66,6 @@ export default {
<template>
<img
v-tooltip
:class="{
lazy: lazy,
[avatarSizeClass]: true,
......@@ -94,9 +76,6 @@ export default {
:height="size"
:alt="imgAlt"
:data-src="sanitizedSource"
:data-container="tooltipContainer"
:data-placement="tooltipPlacement"
:title="tooltipText"
class="avatar"
/>
</template>
---
title: Remove tooltip directive on project avatar image component
merge_request: 29631
author: George Tsiolis
type: performance
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册