Добавлен канал личных публикаций

This commit is contained in:
AidarKC
2026-11-28 01:18:53 +03:00
parent 7d3f5db206
commit d1ca64d1c1
28 changed files with 325 additions and 473 deletions
+2
View File
@@ -58,6 +58,7 @@ export function render({ navigate, chrome }) {
card,
login,
tilesHtml: [
profileTileHtml({ icon: 'channels', label: t('remaining.channels.my_publications'), attrs: 'data-self-profile-action="publications"' }),
profileTileHtml({ icon: 'edit', label: t('screens.profile_view.text_007'), attrs: 'data-self-profile-action="edit"' }),
profileTileHtml({ icon: 'wallet', label: t('screens.profile_view.text_008'), attrs: 'data-self-profile-action="wallet"' }),
profileTileHtml({ icon: 'settings', label: t('screens.profile_view.text_009'), attrs: 'data-self-profile-action="settings"' }),
@@ -83,6 +84,7 @@ export function render({ navigate, chrome }) {
const actionButton = event.target.closest('[data-self-profile-action]');
if (actionButton) {
const action = actionButton.dataset.selfProfileAction;
if (action === 'publications') navigate(`SHiNE/${encodeURIComponent(card.login)}/stories`);
if (action === 'edit') navigate('profile-edit-view');
if (action === 'wallet') navigate('wallet-view');
if (action === 'settings') navigate('settings-view');