summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKushal Pandya <kushalspandya@gmail.com>2019-01-18 06:48:24 +0000
committerKushal Pandya <kushalspandya@gmail.com>2019-01-18 06:48:24 +0000
commitc01f673610804005988c3fbb0082886157cedc09 (patch)
treeb148a996e7173eec8a7ca53a656ab7537b371afe /app
parentf22e4a368b0eca538b384a73597f2bd5578a82f2 (diff)
parent3420ec15dd929ccf28efe8262b9a625a7cc080ed (diff)
downloadgitlab-ce-c01f673610804005988c3fbb0082886157cedc09.tar.gz
Merge branch 'user-avatar-list-empty-text' into 'master'
Handle emptyText in user_avatar_list See merge request gitlab-org/gitlab-ce!24436
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_list.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_list.vue b/app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_list.vue
index 7361867edc5..8eaf8386b99 100644
--- a/app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_list.vue
+++ b/app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_list.vue
@@ -23,6 +23,11 @@ export default {
required: false,
default: 20,
},
+ emptyText: {
+ type: String,
+ required: false,
+ default: __('None'),
+ },
},
data() {
return {
@@ -65,7 +70,8 @@ export default {
</script>
<template>
- <div>
+ <div v-if="!items.length">{{ emptyText }}</div>
+ <div v-else>
<user-avatar-link
v-for="item in visibleItems"
:key="item.id"