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
Léo-Paul Géneau
gitlab-ce
Commits
8d572270
Commit
8d572270
authored
6 years ago
by
Tristan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure unstar icon retains class when toggled
parent
ed3e9197
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/star.js
app/assets/javascripts/star.js
+2
-2
changelogs/unreleased/53400-unstar-icon-button-is-misaligned.yml
...ogs/unreleased/53400-unstar-icon-button-is-misaligned.yml
+5
-0
No files found.
app/assets/javascripts/star.js
View file @
8d572270
...
...
@@ -23,11 +23,11 @@ export default class Star {
if
(
isStarred
)
{
$starSpan
.
removeClass
(
'
starred
'
).
text
(
s__
(
'
StarProject|Star
'
));
$startIcon
.
remove
();
$this
.
prepend
(
spriteIcon
(
'
star-o
'
));
$this
.
prepend
(
spriteIcon
(
'
star-o
'
,
'
icon
'
));
}
else
{
$starSpan
.
addClass
(
'
starred
'
).
text
(
__
(
'
Unstar
'
));
$startIcon
.
remove
();
$this
.
prepend
(
spriteIcon
(
'
star
'
));
$this
.
prepend
(
spriteIcon
(
'
star
'
,
'
icon
'
));
}
})
.
catch
(()
=>
Flash
(
'
Star toggle failed. Try again later.
'
));
...
...
This diff is collapsed.
Click to expand it.
changelogs/unreleased/53400-unstar-icon-button-is-misaligned.yml
0 → 100644
View file @
8d572270
---
title
:
'
Fix:
Unstar
icon
button
is
misaligned'
merge_request
:
23444
author
:
type
:
fixed
This diff is collapsed.
Click to expand it.
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