Commit 200cc4f1 authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Stop making request for disabled emojis.

parent 9a865445
......@@ -109,6 +109,7 @@ class AwardsHandler {
}
$thumbsBtn.toggleClass('disabled', $userAuthored);
$thumbsBtn.prop('disabled', $userAuthored);
}
// Create the emoji menu with the first category of emojis.
......@@ -248,7 +249,7 @@ class AwardsHandler {
},
});
document.querySelector('.js-vue-notes-event').dispatchEvent(toggleAwardEvent);
return document.querySelector('.js-vue-notes-event').dispatchEvent(toggleAwardEvent);
}
const normalizedEmoji = this.emoji.normalizeEmojiName(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