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
Jérome Perrin
gitlab-ce
Commits
38db5f07
Commit
38db5f07
authored
Jun 15, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added computed prop for file list length
parent
74838724
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
app/assets/javascripts/ide/components/commit_sidebar/list.vue
...assets/javascripts/ide/components/commit_sidebar/list.vue
+8
-5
No files found.
app/assets/javascripts/ide/components/commit_sidebar/list.vue
View file @
38db5f07
...
...
@@ -63,6 +63,9 @@ export default {
title
:
this
.
title
,
});
},
filesLength
()
{
return
this
.
fileList
.
length
;
},
},
methods
:
{
...
mapActions
([
'
stageAllChanges
'
,
'
unstageAllChanges
'
]),
...
...
@@ -92,9 +95,9 @@ export default {
<div
class=
"d-flex ml-auto"
>
<button
v-tooltip
v-show=
"file
List.l
ength"
v-show=
"file
sL
ength"
:class=
"
{
'd-flex': file
List.l
ength
'd-flex': file
sL
ength
}"
:title="actionBtnText"
type="button"
...
...
@@ -112,17 +115,17 @@ export default {
</button>
<span
:class=
"
{
'rounded-right': !file
List.l
ength
'rounded-right': !file
sL
ength
}"
class="ide-commit-file-count order-0 rounded-left text-center"
>
{{
file
List
.
l
ength
}}
{{
file
sL
ength
}}
</span>
</div>
</div>
</header>
<ul
v-if=
"file
List.l
ength"
v-if=
"file
sL
ength"
class=
"multi-file-commit-list list-unstyled append-bottom-0"
>
<li
...
...
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