SHA256
Добавлена «Отправить через» в Android
This commit is contained in:
@@ -60,8 +60,11 @@ export function render({ navigate, route, chrome }) {
|
||||
login: requestedLogin,
|
||||
isSelf,
|
||||
tilesHtml: [
|
||||
profileTileHtml({ icon: 'channels', label: t('remaining.channels.publications'), attrs: 'data-profile-action="publications"' }),
|
||||
...(isSelf ? [] : [
|
||||
...(isSelf ? [
|
||||
profileTileHtml({ icon: 'edit', label: t('screens.profile_view.text_007'), attrs: 'data-profile-action="edit"' }),
|
||||
profileTileHtml({ icon: 'wallet', label: t('screens.profile_view.text_008'), attrs: 'data-profile-action="wallet"' }),
|
||||
profileTileHtml({ icon: 'settings', label: t('screens.profile_view.text_009'), attrs: 'data-profile-action="settings"' }),
|
||||
] : [
|
||||
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"' }),
|
||||
@@ -119,7 +122,9 @@ 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 === 'edit') { navigate('profile-edit-view'); return; }
|
||||
if (action === 'wallet') { navigate('wallet-view'); return; }
|
||||
if (action === 'settings') { navigate('settings-view'); return; }
|
||||
if (action === 'add') {
|
||||
navigate(`SHiNE/${encodeURIComponent(card.login)}/manage`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user