diff options
author | Denys Mishunov <dmishunov@gitlab.com> | 2019-04-15 12:22:27 +0300 |
---|---|---|
committer | Denys Mishunov <dmishunov@gitlab.com> | 2019-04-15 12:54:35 +0300 |
commit | ee7d2298e5560539815df6c7b982bc3182aea198 (patch) | |
tree | 63643c4c41979d0965d08e2b9b68cfa54626de90 /app/assets/javascripts/vue_shared/components/sidebar | |
parent | d83eb63beef28a6229b4bf851ee34c51938e29c7 (diff) |
Removes EE diffs for dropdown_value_collapsed
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/sidebar')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_value_collapsed.vue | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_value_collapsed.vue b/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_value_collapsed.vue index 373794fb1f2..05446903286 100644 --- a/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_value_collapsed.vue +++ b/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_value_collapsed.vue @@ -14,10 +14,12 @@ export default { }, computed: { labelsList() { - const labelsString = this.labels - .slice(0, 5) - .map(label => label.title) - .join(', '); + const labelsString = this.labels.length + ? this.labels + .slice(0, 5) + .map(label => label.title) + .join(', ') + : s__('LabelSelect|Labels'); if (this.labels.length > 5) { return sprintf(s__('LabelSelect|%{labelsString}, and %{remainingLabelCount} more'), { |