mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-19 19:11:05 +01:00
breaking: use component for owner icon
not all themes but an i right under member-name
This commit is contained in:
@@ -72,8 +72,8 @@ define('forum/groups/details', [
|
||||
detailsPage.on('click', '[data-action]', function () {
|
||||
const btnEl = $(this);
|
||||
const userRow = btnEl.parents('[data-uid]');
|
||||
const ownerFlagEl = userRow.find('.member-name > i');
|
||||
const isOwner = !ownerFlagEl.hasClass('invisible');
|
||||
const ownerFlagEl = userRow.find('[component="groups/owner/icon"]');
|
||||
const isOwner = !!parseInt(userRow.attr('data-isowner'), 10);
|
||||
const uid = userRow.attr('data-uid');
|
||||
const action = btnEl.attr('data-action');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user