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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
061e6032
Commit
061e6032
authored
Jul 28, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pluralize files
parent
c18fee94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
app/assets/javascripts/repo/repo_commit_section.vue
app/assets/javascripts/repo/repo_commit_section.vue
+6
-2
No files found.
app/assets/javascripts/repo/repo_commit_section.vue
View file @
061e6032
...
@@ -16,7 +16,11 @@ const RepoCommitSection = {
...
@@ -16,7 +16,11 @@ const RepoCommitSection = {
return
this
.
changedFiles
.
map
((
f
)
=>
{
return
this
.
changedFiles
.
map
((
f
)
=>
{
return
Helper
.
getFilePathFromFullPath
(
f
.
url
,
branch
);
return
Helper
.
getFilePathFromFullPath
(
f
.
url
,
branch
);
});
});
}
},
filePluralize
()
{
return
this
.
changedFiles
.
length
>
1
?
'
files
'
:
'
file
'
},
},
},
methods
:
{
methods
:
{
...
@@ -87,7 +91,7 @@ export default RepoCommitSection;
...
@@ -87,7 +91,7 @@ export default RepoCommitSection;
<div
class=
"col-md-offset-4 col-md-4"
>
<div
class=
"col-md-offset-4 col-md-4"
>
<button
type=
"submit"
:disabled=
"!commitMessage || submitCommitsLoading"
class=
"btn btn-success submit-commit"
@
click.prevent=
"makeCommit"
>
<button
type=
"submit"
:disabled=
"!commitMessage || submitCommitsLoading"
class=
"btn btn-success submit-commit"
@
click.prevent=
"makeCommit"
>
<i
class=
"fa fa-spinner fa-spin"
v-if=
"submitCommitsLoading"
></i>
<i
class=
"fa fa-spinner fa-spin"
v-if=
"submitCommitsLoading"
></i>
<span
class=
"commit-summary"
>
Commit
{{
changedFiles
.
length
}}
Files
</span>
<span
class=
"commit-summary"
>
Commit
{{
changedFiles
.
length
}}
{{
filePluralize
}}
</span>
</button>
</button>
</div>
</div>
</fieldset>
</fieldset>
...
...
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