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
d211f7ee
Commit
d211f7ee
authored
Sep 01, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6dcce983
bfed409d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
app/assets/javascripts/ide/components/file_row_extra.vue
app/assets/javascripts/ide/components/file_row_extra.vue
+1
-1
app/assets/javascripts/vue_shared/components/changed_file_icon.vue
...s/javascripts/vue_shared/components/changed_file_icon.vue
+2
-2
changelogs/unreleased/refactor-showStagedIcon.yml
changelogs/unreleased/refactor-showStagedIcon.yml
+5
-0
spec/frontend/vue_shared/components/changed_file_icon_spec.js
.../frontend/vue_shared/components/changed_file_icon_spec.js
+2
-4
No files found.
app/assets/javascripts/ide/components/file_row_extra.vue
View file @
d211f7ee
...
...
@@ -86,7 +86,7 @@ export default {
v-else-if=
"showChangedFileIcon"
:file=
"file"
:show-tooltip=
"true"
:show-staged-icon=
"
tru
e"
:show-staged-icon=
"
fals
e"
/>
<new-dropdown
:type=
"file.type"
...
...
app/assets/javascripts/vue_shared/components/changed_file_icon.vue
View file @
d211f7ee
...
...
@@ -24,7 +24,7 @@ export default {
showStagedIcon
:
{
type
:
Boolean
,
required
:
false
,
default
:
fals
e
,
default
:
tru
e
,
},
size
:
{
type
:
Number
,
...
...
@@ -41,7 +41,7 @@ export default {
changedIcon
()
{
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings
const
suffix
=
!
this
.
file
.
changed
&&
this
.
file
.
staged
&&
!
this
.
showStagedIcon
?
'
-solid
'
:
''
;
const
suffix
=
!
this
.
file
.
changed
&&
this
.
file
.
staged
&&
this
.
showStagedIcon
?
'
-solid
'
:
''
;
return
`
${
getCommitIconMap
(
this
.
file
).
icon
}${
suffix
}
`
;
},
...
...
changelogs/unreleased/refactor-showStagedIcon.yml
0 → 100644
View file @
d211f7ee
---
title
:
Refactor showStagedIcon property to reflect the behavior its name represents.
merge_request
:
32333
author
:
Arun Kumar Mohan
type
:
other
spec/frontend/vue_shared/components/changed_file_icon_spec.js
View file @
d211f7ee
...
...
@@ -106,12 +106,10 @@ describe('Changed file icon', () => {
expect
(
findIcon
().
props
(
'
size
'
)).
toBe
(
size
);
});
// NOTE: It looks like 'showStagedIcon' behavior is backwards to what the name suggests
// https://gitlab.com/gitlab-org/gitlab-ce/issues/66071
it
.
each
`
showStagedIcon | iconName | desc
${
false
}
|
${
'
file-modified-solid
'
}
|
${
'
with showStagedIcon fals
e, renders staged icon
'
}
${
true
}
|
${
'
file-modified
'
}
|
${
'
with showStagedIcon tru
e, renders regular icon
'
}
${
true
}
|
${
'
file-modified-solid
'
}
|
${
'
with showStagedIcon tru
e, renders staged icon
'
}
${
false
}
|
${
'
file-modified
'
}
|
${
'
with showStagedIcon fals
e, renders regular icon
'
}
`
(
'
$desc
'
,
({
showStagedIcon
,
iconName
})
=>
{
factory
({
file
:
stagedFile
(),
...
...
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