schedule measure after submitting reaction (#135)

This commit is contained in:
Jeremy Danyow 2019-03-18 20:16:29 -07:00 committed by GitHub
parent 5515aa3cd0
commit c098849481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import { toggleReaction, ReactionID, reactionTypes } from './github';
import { getLoginUrl } from './oauth';
import { pageAttributes } from './page-attributes';
import { scheduleMeasure } from './measure';
export const reactionNames: { [key in ReactionID]: string; } = {
'+1': 'Thumbs Up',
@ -70,6 +71,7 @@ export function enableReactions(authenticated: boolean) {
(parseInt(element.getAttribute('reaction-count')!, 10) + delta).toString());
}
button.disabled = false;
scheduleMeasure();
};
addEventListener('click', submitReaction, true);
}