User: Correctly display the number of videos and notes on the user's page when their list is collapsed

This commit is contained in:
Maxim Leshchenko 2021-11-16 14:31:15 +02:00
parent 4daa1afea4
commit 2ee7a141c5

View file

@ -256,7 +256,7 @@
</div>
</div>
<div n:if="$videosCount > 0 && $user->getPrivacyPermission('videos.read', $thisUser ?? NULL)">
<div class="content_title_expanded" onclick="hidePanel(this, {$albumsCount});">
<div class="content_title_expanded" onclick="hidePanel(this, {$videosCount});">
{_videos}
</div>
<div>
@ -282,7 +282,7 @@
</div>
</div>
<div n:if="$notesCount > 0 && $user->getPrivacyPermission('notes.read', $thisUser ?? NULL)">
<div class="content_title_expanded" onclick="hidePanel(this, {$albumsCount});">
<div class="content_title_expanded" onclick="hidePanel(this, {$notesCount});">
{_notes}
</div>
<div>