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
c6f0389a
Commit
c6f0389a
authored
Sep 25, 2020
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove epic icons on Swimlanes
parent
cec8e8a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
ee/app/assets/javascripts/boards/components/epic_lane.vue
ee/app/assets/javascripts/boards/components/epic_lane.vue
+0
-15
ee/spec/frontend/boards/components/epic_lane_spec.js
ee/spec/frontend/boards/components/epic_lane_spec.js
+2
-11
No files found.
ee/app/assets/javascripts/boards/components/epic_lane.vue
View file @
c6f0389a
...
...
@@ -56,15 +56,6 @@ export default {
chevronIcon
()
{
return
this
.
isExpanded
?
'
chevron-down
'
:
'
chevron-right
'
;
},
stateText
()
{
return
this
.
isOpen
?
__
(
'
Opened
'
)
:
__
(
'
Closed
'
);
},
epicIcon
()
{
return
this
.
isOpen
?
'
epic
'
:
'
epic-closed
'
;
},
stateIconClass
()
{
return
this
.
isOpen
?
'
gl-text-green-500
'
:
'
gl-text-blue-500
'
;
},
issuesCount
()
{
return
this
.
lists
.
reduce
(
(
total
,
list
)
=>
total
+
this
.
getIssuesByEpic
(
list
.
id
,
this
.
epic
.
id
).
length
,
...
...
@@ -126,12 +117,6 @@ export default {
data-testid=
"epic-lane-chevron"
@
click=
"toggleExpanded"
/>
<gl-icon
class=
"gl-mr-2 gl-flex-shrink-0"
:class=
"stateIconClass"
:name=
"epicIcon"
:aria-label=
"stateText"
/>
<h4
ref=
"epicTitle"
class=
"gl-mr-3 gl-font-weight-bold gl-font-base gl-white-space-nowrap gl-text-overflow-ellipsis gl-overflow-hidden"
...
...
ee/spec/frontend/boards/components/epic_lane_spec.js
View file @
c6f0389a
...
...
@@ -58,21 +58,12 @@ describe('EpicLane', () => {
createComponent
();
});
it
(
'
icon aria label is Opened when epic is opened
'
,
()
=>
{
expect
(
wrapper
.
find
(
GlIcon
).
attributes
(
'
aria-label
'
)).
toEqual
(
'
Opened
'
);
});
it
(
'
icon aria label is Closed when epic is closed
'
,
()
=>
{
createComponent
({
props
:
{
epic
:
{
...
mockEpic
,
state
:
'
closed
'
}
}
});
expect
(
wrapper
.
find
(
GlIcon
).
attributes
(
'
aria-label
'
)).
toEqual
(
'
Closed
'
);
});
it
(
'
displays count of issues in epic which belong to board
'
,
()
=>
{
expect
(
findByTestId
(
'
epic-lane-issue-count
'
).
text
()).
toContain
(
2
);
});
it
(
'
displays
2 icons
'
,
()
=>
{
expect
(
wrapper
.
findAll
(
GlIcon
)).
toHaveLength
(
2
);
it
(
'
displays
1 icon
'
,
()
=>
{
expect
(
wrapper
.
findAll
(
GlIcon
)).
toHaveLength
(
1
);
});
it
(
'
displays epic title
'
,
()
=>
{
...
...
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