From 9fdc73b131a11360c7df96dab88401c5fa4eb1ef Mon Sep 17 00:00:00 2001 From: Daniel Oda Date: Thu, 30 Nov 2017 00:37:20 -0200 Subject: [PATCH] fixing issue name bug --- src/components/Issues/Issues.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Issues/Issues.vue b/src/components/Issues/Issues.vue index bb4fd4cc..fe7fb714 100644 --- a/src/components/Issues/Issues.vue +++ b/src/components/Issues/Issues.vue @@ -16,7 +16,7 @@
-

{{issue.name}}

+

{{ issue.name | truncate '10' }}

@@ -70,6 +70,13 @@ export default { }), }, + filters: { + + truncate: function(string, value) { + return string.substring(0, value) + '...'; + } + }, + methods: { selectIssue(issue) { this.selectedIssue = issue;