SHA256
Добавлен канал личных публикаций
This commit is contained in:
@@ -59,12 +59,14 @@ export function render({ navigate, route, chrome }) {
|
||||
card,
|
||||
login: requestedLogin,
|
||||
isSelf,
|
||||
tilesHtml: isSelf ? '' : [
|
||||
tilesHtml: [
|
||||
profileTileHtml({ icon: 'channels', label: t('remaining.channels.publications'), attrs: 'data-profile-action="publications"' }),
|
||||
...(isSelf ? [] : [
|
||||
profileTileHtml({ icon: 'user-plus', label: t('screens.user_profile_view.text_004'), attrs: 'data-profile-action="add"' }),
|
||||
profileTileHtml({ label: t('screens.user_profile_view.text_005'), attrs: 'data-profile-action="links"', iconMarkup: `<img class="pf-tile-mandala" src="${SHINE_CONNECTIONS_LOGO_SRC}" alt="" aria-hidden="true">` }),
|
||||
profileTileHtml({ icon: 'message', label: t('screens.user_profile_view.text_006'), attrs: 'data-profile-action="chat"' }),
|
||||
profileTileHtml({ icon: 'heart', label: t('screens.support_phase2.donate'), attrs: 'data-profile-action="support"' }),
|
||||
].join(''),
|
||||
])].join(''),
|
||||
});
|
||||
|
||||
attachSupportStats(body, { login: card.login, isActive: () => !disposed });
|
||||
@@ -117,6 +119,7 @@ export function render({ navigate, route, chrome }) {
|
||||
|
||||
const actionButton = event.target.closest('[data-profile-action]');
|
||||
const action = actionButton?.dataset.profileAction;
|
||||
if (action === 'publications') { navigate(`SHiNE/${encodeURIComponent(card.login)}/stories`); return; }
|
||||
if (action === 'add') {
|
||||
navigate(`SHiNE/${encodeURIComponent(card.login)}/manage`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user