nickytonline/comment subscription fix (#8768)

This commit is contained in:
Nick Taylor 2020-06-18 11:26:48 -04:00 committed by GitHub
parent 3ba1692eab
commit e117c7b766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -48,7 +48,6 @@ const userDataIntervalID = setInterval(async () => {
onUnsubscribe={subscriptionRequestHandler}
/>,
root,
root.firstElementChild,
);
} catch (e) {
document.querySelector('#comment-subscription').innerHTML =

View file

@ -3,7 +3,11 @@
<% if @article.show_comments %>
<header class="relative flex justify-between items-center">
<h3 class="fs-2xl fw-bold">Discussion</h3>
<div id="comment-subscription"><span class="crayons-btn crayons-btn--outlined">Subscribe</span></div>
<div id="comment-subscription">
<div role="presentation" class="crayons-btn-group">
<span class="crayons-btn crayons-btn--outlined">Subscribe</span>
</div>
</div>
</header>
<div
class="comments-container"