diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-08-11 14:51:41 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-08-11 16:56:28 +0300 |
commit | b38e690344a3d37e3be0305c88ea96adbc82aca6 (patch) | |
tree | 7ba16fb17b928be49e11f137b7eb80691d07d31a /app/assets/javascripts/vue_shared | |
parent | fc9e57434c57c8ebd36e7f038cf7535422e893e9 (diff) |
Fix open discussions
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/markdown/field.vue | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/field.vue b/app/assets/javascripts/vue_shared/components/markdown/field.vue index af7ea748077..f84652d397c 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/field.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/field.vue @@ -3,8 +3,6 @@ import markdownHeader from './header.vue'; import markdownToolbar from './toolbar.vue'; - const REFERENCED_USERS_THRESHOLD = 10; - export default { props: { markdownPreviewUrl: { @@ -41,7 +39,8 @@ }, computed: { shouldShowReferencedUsers() { - return this.referencedUsers.length >= REFERENCED_USERS_THRESHOLD; + const referencedUsersThreshold = 10; + return this.referencedUsers.length >= referencedUsersThreshold; }, }, methods: { |