diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /app/assets/javascripts/vue_shared/components/project_avatar/default.vue | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/project_avatar/default.vue')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/project_avatar/default.vue | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/app/assets/javascripts/vue_shared/components/project_avatar/default.vue b/app/assets/javascripts/vue_shared/components/project_avatar/default.vue deleted file mode 100644 index 4bc70870767..00000000000 --- a/app/assets/javascripts/vue_shared/components/project_avatar/default.vue +++ /dev/null @@ -1,46 +0,0 @@ -<script> -import Identicon from '../identicon.vue'; -import ProjectAvatarImage from './image.vue'; - -export default { - components: { - Identicon, - ProjectAvatarImage, - }, - props: { - project: { - type: Object, - required: true, - }, - size: { - type: Number, - default: 40, - required: false, - }, - }, - computed: { - sizeClass() { - return `s${this.size}`; - }, - }, -}; -</script> - -<template> - <span :class="sizeClass" class="avatar-container rect-avatar project-avatar"> - <project-avatar-image - v-if="project.avatar_url" - :link-href="project.path" - :img-src="project.avatar_url" - :img-alt="project.name" - :img-size="size" - /> - <identicon - v-else - :entity-id="project.id" - :entity-name="project.name" - :size-class="sizeClass" - class="rect-avatar" - /> - </span> -</template> |