From 632793b067b04fbc6e8c9459a808d97090e60036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 9 Sep 2020 16:40:03 -0400 Subject: [PATCH] fix: dont use hardcoded fontawesome icons for lock pin --- public/src/client/topic/threadTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/client/topic/threadTools.js b/public/src/client/topic/threadTools.js index 11d9adb5a0eb..e2ad31dc89c5 100644 --- a/public/src/client/topic/threadTools.js +++ b/public/src/client/topic/threadTools.js @@ -198,7 +198,7 @@ define('forum/topic/threadTools', [ threadEl.find('[component="post"][data-uid="' + app.user.uid + '"].deleted [component="post/tools"]').toggleClass('hidden', isLocked); - $('[component="post/header"] i.fa-lock').toggleClass('hidden', !data.isLocked); + $('[component="post/header"] [component="topic/locked"]').toggleClass('hidden', !data.isLocked); $('[component="post/tools"] .dropdown-menu').html(''); ajaxify.data.locked = data.isLocked; }; @@ -243,7 +243,7 @@ define('forum/topic/threadTools', [ components.get('topic/pin').toggleClass('hidden', data.isPinned).parent().attr('hidden', data.isPinned ? '' : null); components.get('topic/unpin').toggleClass('hidden', !data.isPinned).parent().attr('hidden', !data.isPinned ? '' : null); - $('[component="post/header"] i.fa-thumb-tack').toggleClass('hidden', !data.isPinned); + $('[component="post/header"] [component="topic/pinned"]').toggleClass('hidden', !data.isPinned); ajaxify.data.pinned = data.isPinned; };