IssueNotesRefactor: Stop making request for disabled emojis.
This commit is contained in:
parent
9a8654455f
commit
200cc4f167
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue