Site > File > Viewer > Add lines

This commit is contained in:
brunosimon
2017-08-15 23:05:59 +02:00
parent 377a088fcb
commit bfe6fc708b
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -16,6 +16,11 @@ export default
version()
{
return this.$store.state.files.currentVersion
},
linesCount()
{
return (this.$store.state.files.currentVersion.content.match(/\n/g) || []).length + 1
}
},