feat: use unread icon in mobile

This commit is contained in:
Barış Soner Uşaklı
2021-10-06 12:58:34 -04:00
parent d30c316be9
commit 27e53b42f3
2 changed files with 4 additions and 3 deletions

View File

@@ -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]]' }]);