diff options
author | Tristan Read <tread@gitlab.com> | 2018-12-03 13:06:53 +0100 |
---|---|---|
committer | Tristan Read <tread@gitlab.com> | 2018-12-03 13:59:54 +0100 |
commit | 8d57227041381c403db28cf1aa000f40899eec73 (patch) | |
tree | d0cdf331e223ed50bb236db3db667298b2aeb6a5 /app/assets/javascripts/star.js | |
parent | ed3e91976df8ee6caf7f3d66bcd9d2a63f3f33b3 (diff) | |
download | gitlab-ce-8d57227041381c403db28cf1aa000f40899eec73.tar.gz |
Ensure unstar icon retains class when toggled
Diffstat (limited to 'app/assets/javascripts/star.js')
-rw-r--r-- | app/assets/javascripts/star.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/star.js b/app/assets/javascripts/star.js index 007b83e1927..9af5d5b23cb 100644 --- a/app/assets/javascripts/star.js +++ b/app/assets/javascripts/star.js @@ -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.')); |