Commit 9e8449b1 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Hides the row in notes body when empty of emojis

parent 25a48932
......@@ -95,6 +95,11 @@ class @AwardsHandler
counter = $('.js-counter', $emojiBtn)
counterNumber = parseInt(counter.text())
if !isntNoteBody
console.log $emojiBtn.get(0)
# If this is a note body, we just hide the award emoji row like the initial state
$emojiBtn.closest('.js-awards-block').addClass 'hidden'
if counterNumber > 1
counter.text(counterNumber - 1)
@removeMeFromUserList($emojiBtn, emoji)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment