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
93006905
Commit
93006905
authored
Mar 28, 2017
by
Phil Hughes
Committed by
Filipa Lacerda
Mar 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed labels icon being hidden in collapsed issuable sidebar
parent
1bec2fb3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+1
-1
spec/javascripts/right_sidebar_spec.js
spec/javascripts/right_sidebar_spec.js
+6
-0
No files found.
app/views/shared/issuable/_sidebar.html.haml
View file @
93006905
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
-
selected_labels
=
issuable
.
labels
-
selected_labels
=
issuable
.
labels
.block.labels
.block.labels
.sidebar-collapsed-icon.js-sidebar-labels-tooltip
{
title:
issuable_labels_tooltip
(
issuable
.
labels_array
),
data:
{
placement:
"left"
,
container:
"body"
}
}
.sidebar-collapsed-icon.js-sidebar-labels-tooltip
{
title:
issuable_labels_tooltip
(
issuable
.
labels_array
),
data:
{
placement:
"left"
,
container:
"body"
}
}
=
icon
(
'tags'
,
class:
'hidden'
,
'aria-hidden'
:
'true'
)
=
icon
(
'tags'
,
'aria-hidden'
:
'true'
)
%span
%span
=
selected_labels
.
size
=
selected_labels
.
size
.title.hide-collapsed
.title.hide-collapsed
...
...
spec/javascripts/right_sidebar_spec.js
View file @
93006905
...
@@ -78,5 +78,11 @@ import '~/right_sidebar';
...
@@ -78,5 +78,11 @@ import '~/right_sidebar';
expect
(
todoToggleSpy
.
calls
.
count
()).
toEqual
(
1
);
expect
(
todoToggleSpy
.
calls
.
count
()).
toEqual
(
1
);
});
});
it
(
'
should not hide collapsed icons
'
,
()
=>
{
[].
forEach
.
call
(
document
.
querySelectorAll
(
'
.sidebar-collapsed-icon
'
),
(
el
)
=>
{
expect
(
el
.
querySelector
(
'
.fa, svg
'
).
classList
.
contains
(
'
hidden
'
)).
toBeFalsy
();
});
});
});
});
}).
call
(
window
);
}).
call
(
window
);
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