summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/star.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-10-10 02:13:34 -0500
committerMike Greiling <mike@pixelcog.com>2018-10-16 13:01:19 -0500
commitc559bcca03a83db3e6ce66d4ae3cd98f8b9d1cb0 (patch)
treec0b88650027f5d2091baba92007f86605dee9817 /app/assets/javascripts/star.js
parentaeaf6686df0dabd211221b1158586136707f3bdf (diff)
downloadgitlab-ce-c559bcca03a83db3e6ce66d4ae3cd98f8b9d1cb0.tar.gz
Prettify additional modules (I through Z)
Diffstat (limited to 'app/assets/javascripts/star.js')
-rw-r--r--app/assets/javascripts/star.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/star.js b/app/assets/javascripts/star.js
index f5a7fdae5d7..007b83e1927 100644
--- a/app/assets/javascripts/star.js
+++ b/app/assets/javascripts/star.js
@@ -11,10 +11,14 @@ export default class Star {
const $starSpan = $this.find('span');
const $startIcon = $this.find('svg');
- axios.post($this.data('endpoint'))
+ axios
+ .post($this.data('endpoint'))
.then(({ data }) => {
const isStarred = $starSpan.hasClass('starred');
- $this.parent().find('.star-count').text(data.star_count);
+ $this
+ .parent()
+ .find('.star-count')
+ .text(data.star_count);
if (isStarred) {
$starSpan.removeClass('starred').text(s__('StarProject|Star'));