Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-10-23 21:24:48 +0300
committerPhil Hughes <me@iamphill.com>2018-10-23 21:24:48 +0300
commit3b3aa28c4cf73ec166d915117b589afb87cbd8ab (patch)
tree2c9741ca409fc16ee54ec79a79a909e379eaf77a /app/assets/javascripts/vue_shared/components/file_row.vue
parentb07a0167d03f792c9e44152d96d9245d252538db (diff)
Use convertPermissionToBoolean to get a boolean
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/file_row.vue')
-rw-r--r--app/assets/javascripts/vue_shared/components/file_row.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/file_row.vue b/app/assets/javascripts/vue_shared/components/file_row.vue
index 510c5eb5fca..2d89a156117 100644
--- a/app/assets/javascripts/vue_shared/components/file_row.vue
+++ b/app/assets/javascripts/vue_shared/components/file_row.vue
@@ -74,7 +74,9 @@ export default {
outputText() {
const text = this.file[this.displayTextKey];
- if (this.truncateStart === 0) return text;
+ if (this.truncateStart === 0) {
+ return text;
+ }
return `...${text.substring(this.truncateStart, text.length)}`;
},