mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Merge pull request #7391 from wandji20/wb-SCI-10541
Fix Canvas - Broken new comment badge while adding new comments [SCI-10541]
This commit is contained in:
commit
fe6879a0e8
|
@ -31,7 +31,6 @@ var CommentsSidebar = (function() {
|
|||
// Replace the number in comment element
|
||||
commentsCounter.text(commentsCounter.text().replace(/[\d\\+]+/g, commentsAmount));
|
||||
commentsCounter.removeClass('hidden');
|
||||
commentsCounter.css('display', 'flex');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -86,9 +86,9 @@
|
|||
@click="openCommentsSidebar"
|
||||
:data-object-id="step.id">
|
||||
<i class="sn-icon sn-icon-comments"></i>
|
||||
<span class="comments-counter" v-show="step.attributes.comments_count"
|
||||
<span class="comments-counter"
|
||||
:id="`comment-count-${step.id}`"
|
||||
:class="{'unseen': step.attributes.unseen_comments}"
|
||||
:class="{'unseen': step.attributes.unseen_comments, 'hidden': !step.attributes.comments_count}"
|
||||
>
|
||||
{{ step.attributes.comments_count }}
|
||||
</span>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
data-object-type="Result"
|
||||
:data-object-id="result.id">
|
||||
<i class="sn-icon sn-icon-comments"></i>
|
||||
<span class="comments-counter" v-show="result.attributes.comments_count"
|
||||
<span class="comments-counter" :class="{ 'hidden': !result.attributes.comments_count }"
|
||||
:id="`comment-count-${result.id}`">
|
||||
{{ result.attributes.comments_count }}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue