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
9517fdb9
Commit
9517fdb9
authored
Mar 09, 2021
by
yo
Committed by
Yogi
Mar 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to btn-default and selected class in toggle comment button
Add Changelog Update btn-default-toggle-comment.yml
parent
f974964d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+1
-1
app/views/projects/diffs/_file.html.haml
app/views/projects/diffs/_file.html.haml
+1
-1
changelogs/unreleased/btn-default-toggle-comment.yml
changelogs/unreleased/btn-default-toggle-comment.yml
+5
-0
No files found.
app/assets/javascripts/main.js
View file @
9517fdb9
...
...
@@ -272,7 +272,7 @@ document.addEventListener('DOMContentLoaded', () => {
e
.
preventDefault
();
$this
.
toggleClass
(
'
active
'
);
$this
.
toggleClass
(
'
selected
'
);
if
(
$this
.
hasClass
(
'
active
'
))
{
notesHolders
.
show
().
find
(
'
.hide, .content
'
).
show
();
...
...
app/views/projects/diffs/_file.html.haml
View file @
9517fdb9
...
...
@@ -17,7 +17,7 @@
.file-actions.d-none.d-sm-block
-
if
diff_file
.
blob
&
.
readable_text?
%span
.has-tooltip
{
title:
_
(
"Toggle comments for this file"
)
}
=
link_to
'#'
,
class:
'js-toggle-diff-comments btn gl-button
active
'
,
disabled:
@diff_notes_disabled
do
=
link_to
'#'
,
class:
'js-toggle-diff-comments btn gl-button
btn-default selected
'
,
disabled:
@diff_notes_disabled
do
=
sprite_icon
(
'comment'
)
\
-
if
editable_diff?
(
diff_file
)
...
...
changelogs/unreleased/btn-default-toggle-comment.yml
0 → 100644
View file @
9517fdb9
---
title
:
Move to btn-default and selected class in toggle comment button
merge_request
:
56090
author
:
Yogi (@yo)
type
:
changed
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