summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/menu.js5
-rw-r--r--templates/part.listfolder.php1
2 files changed, 2 insertions, 4 deletions
diff --git a/js/menu.js b/js/menu.js
index 2d60d9e87..b5da5e8cf 100644
--- a/js/menu.js
+++ b/js/menu.js
@@ -840,10 +840,7 @@ var News = News || {};
*/
Menu.prototype._applyUnreadCountStyle = function(type, id, unreadCount) {
var $node = this._getNodeFromTypeAndId(type, id);
-
- if(type !== MenuNodeType.Folder){
- $node.children('.unread_items_counter').html(unreadCount);
- }
+ $node.children('.unread_items_counter').html(unreadCount);
if(unreadCount === 0){
$node.addClass('all_read');
diff --git a/templates/part.listfolder.php b/templates/part.listfolder.php
index 6bc5b1472..31444c729 100644
--- a/templates/part.listfolder.php
+++ b/templates/part.listfolder.php
@@ -28,6 +28,7 @@ if ($lastViewedFeedType == OCA\News\FeedType::FOLDER && $lastViewedFeedId == $fo
echo '<li class="folder ' . $openedClass . ' ' . $activeClass . ' all_read" data-id="' . $folderId . '">';
echo '<button class="collapsable_trigger" title="' . $l->t('Collapse') . '"></button>';
echo '<a href="#" class="title">' . htmlspecialchars($folderName, ENT_QUOTES, 'UTF-8') . '</a>';
+ echo '<span class="unread_items_counter"></span>';
echo '<span class="buttons">';
echo '<button class="svg action feeds_delete" title="' . $l->t('Delete folder') . '"></button>';
echo '<button class="svg action feeds_edit" title="' . $l->t('Rename folder') . '"></button>';