breaking: use component for owner icon

not all themes but an i right under member-name
This commit is contained in:
Barış Soner Uşaklı
2023-01-11 11:59:56 -05:00
parent 53ea1867ab
commit b1590f28a2

View File

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