Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
8a076c1b
Commit
8a076c1b
authored
Apr 16, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed eslint & karma specs
parent
ea3a0d3e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/ide/components/file_finder/item.vue
app/assets/javascripts/ide/components/file_finder/item.vue
+1
-2
spec/javascripts/ide/components/file_finder/item_spec.js
spec/javascripts/ide/components/file_finder/item_spec.js
+1
-0
No files found.
app/assets/javascripts/ide/components/file_finder/item.vue
View file @
8a076c1b
<
script
>
import
{
escape
}
from
'
underscore
'
;
import
fuzzaldrinPlus
from
'
fuzzaldrin-plus
'
;
import
FileIcon
from
'
../../../vue_shared/components/file_icon.vue
'
;
import
ChangedFileIcon
from
'
../changed_file_icon.vue
'
;
...
...
@@ -31,7 +30,7 @@ export default {
},
computed
:
{
pathWithEllipsis
()
{
return
this
.
file
.
path
.
length
<
MAX_PATH_LENGTH
||
!
addEllipsis
return
this
.
file
.
path
.
length
<
MAX_PATH_LENGTH
?
this
.
file
.
path
:
`...
${
this
.
file
.
path
.
substr
(
this
.
file
.
path
.
length
-
MAX_PATH_LENGTH
)}
`
;
},
...
...
spec/javascripts/ide/components/file_finder/item_spec.js
View file @
8a076c1b
...
...
@@ -19,6 +19,7 @@ describe('IDE File finder item spec', () => {
file
:
localFile
,
focused
:
true
,
searchText
:
''
,
index
:
0
,
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment