diff --git a/public/src/modules/categorySelector.js b/public/src/modules/categorySelector.js index f7de882276..0ac9da7229 100644 --- a/public/src/modules/categorySelector.js +++ b/public/src/modules/categorySelector.js @@ -30,7 +30,7 @@ define('categorySelector', [ selector.selectCategory(categoryEl.attr('data-cid')); onSelect(selector.selectedCategory); }); - + const defaultSelectHtml = selector.el.find('[component="category-selector-selected"]').html(); selector.selectCategory = function (cid) { var categoryEl = selector.el.find('[data-cid="' + cid + '"]'); selector.selectedCategory = { @@ -43,8 +43,8 @@ define('categorySelector', [ categoryEl.find('[component="category-markup"]').html() ); } else { - selector.el.find('[component="category-selector-selected"]').translateHtml( - options.selectCategoryLabel || '[[topic:thread_tools.select_category]]' + selector.el.find('[component="category-selector-selected"]').html( + defaultSelectHtml ); } }; diff --git a/src/controllers/unread.js b/src/controllers/unread.js index 55d0d7c008..26a8c5675c 100644 --- a/src/controllers/unread.js +++ b/src/controllers/unread.js @@ -49,6 +49,7 @@ unreadController.get = async function (req, res) { data.selectedCategory = categoryData.selectedCategory; data.selectedCids = categoryData.selectedCids; data.selectCategoryLabel = '[[unread:mark_as_read]]'; + data.selectCategoryIcon = 'fa-inbox'; if (req.originalUrl.startsWith(`${nconf.get('relative_path')}/api/unread`) || req.originalUrl.startsWith(`${nconf.get('relative_path')}/unread`)) { data.title = '[[pages:unread]]'; data.breadcrumbs = helpers.buildBreadcrumbs([{ text: '[[unread:title]]' }]);