Commit 5103b264 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'ss/rm-scoped-slot' into 'master'

Removed unused props in the avatar link components

See merge request gitlab-org/gitlab!45604
parents 390b1abc a8939e55
...@@ -16,10 +16,6 @@ export default { ...@@ -16,10 +16,6 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
rootPath: {
type: String,
required: true,
},
tooltipPlacement: { tooltipPlacement: {
type: String, type: String,
default: 'bottom', default: 'bottom',
...@@ -76,7 +72,7 @@ export default { ...@@ -76,7 +72,7 @@ export default {
<!-- use d-flex so that slot can be appropriately styled --> <!-- use d-flex so that slot can be appropriately styled -->
<span class="d-flex"> <span class="d-flex">
<assignee-avatar :user="user" :img-size="32" :issuable-type="issuableType" /> <assignee-avatar :user="user" :img-size="32" :issuable-type="issuableType" />
<slot :user="user"></slot> <slot></slot>
</span> </span>
</gl-link> </gl-link>
</template> </template>
...@@ -13,10 +13,6 @@ export default { ...@@ -13,10 +13,6 @@ export default {
type: Array, type: Array,
required: true, required: true,
}, },
rootPath: {
type: String,
required: true,
},
issuableType: { issuableType: {
type: String, type: String,
required: false, required: false,
...@@ -66,22 +62,20 @@ export default { ...@@ -66,22 +62,20 @@ export default {
<template> <template>
<assignee-avatar-link <assignee-avatar-link
v-if="hasOneUser" v-if="hasOneUser"
#default="{ user }"
tooltip-placement="left" tooltip-placement="left"
:tooltip-has-name="false" :tooltip-has-name="false"
:user="firstUser" :user="firstUser"
:root-path="rootPath"
:issuable-type="issuableType" :issuable-type="issuableType"
> >
<div class="ml-2 gl-line-height-normal"> <div class="ml-2 gl-line-height-normal">
<div>{{ user.name }}</div> <div>{{ firstUser.name }}</div>
<div>{{ username }}</div> <div>{{ username }}</div>
</div> </div>
</assignee-avatar-link> </assignee-avatar-link>
<div v-else> <div v-else>
<div class="user-list"> <div class="user-list">
<div v-for="user in uncollapsedUsers" :key="user.id" class="user-item"> <div v-for="user in uncollapsedUsers" :key="user.id" class="user-item">
<assignee-avatar-link :user="user" :root-path="rootPath" :issuable-type="issuableType" /> <assignee-avatar-link :user="user" :issuable-type="issuableType" />
</div> </div>
</div> </div>
<div v-if="renderShowMoreSection" class="user-list-more"> <div v-if="renderShowMoreSection" class="user-list-more">
......
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