this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix missing menus due to last refactor

+136 -48
+83 -8
src/components/related-actions.jsx
··· 470 470 } 471 471 }} 472 472 > 473 - <Icon icon="link" /> 474 - <span> 473 + <Icon icon="copy" /> 474 + <small> 475 475 <Trans>Copy handle</Trans> 476 - </span> 476 + <br /> 477 + <span class="more-insignificant bidi-isolate"> 478 + @{currentInfo?.acct || acctWithInstance} 479 + </span> 480 + </small> 477 481 </MenuItem> 478 482 <MenuItem href={url} target="_blank"> 479 483 <Icon icon="external" /> 480 484 <small class="menu-double-lines">{niceAccountURL(url)}</small> 481 485 </MenuItem> 482 - {currentAuthenticated && !isSelf && ( 486 + <div class="menu-horizontal"> 487 + <MenuItem 488 + onClick={() => { 489 + // Copy url to clipboard 490 + try { 491 + navigator.clipboard.writeText(url); 492 + showToast(t`Link copied`); 493 + } catch (e) { 494 + console.error(e); 495 + showToast(t`Unable to copy link`); 496 + } 497 + }} 498 + > 499 + <Icon icon="link" /> 500 + <span> 501 + <Trans>Copy</Trans> 502 + </span> 503 + </MenuItem> 504 + {navigator?.share && 505 + navigator?.canShare?.({ 506 + url, 507 + }) && ( 508 + <MenuItem 509 + onClick={() => { 510 + try { 511 + navigator.share({ 512 + url, 513 + }); 514 + } catch (e) { 515 + console.error(e); 516 + alert(t`Sharing doesn't seem to work.`); 517 + } 518 + }} 519 + > 520 + <Icon icon="share" /> 521 + <span> 522 + <Trans>Share…</Trans> 523 + </span> 524 + </MenuItem> 525 + )} 526 + </div> 527 + {!!relationship && ( 483 528 <> 484 529 <MenuDivider /> 485 - {!muting && ( 530 + {muting ? ( 531 + <MenuItem 532 + onClick={() => { 533 + setRelationshipUIState('loading'); 534 + (async () => { 535 + try { 536 + const newRelationship = await currentMasto.v1.accounts 537 + .$select(currentInfo?.id || id) 538 + .unmute(); 539 + console.log('unmuting', newRelationship); 540 + setRelationship(newRelationship); 541 + setRelationshipUIState('default'); 542 + showToast(t`Unmuted @${username}`); 543 + states.reloadGenericAccounts.id = 'mute'; 544 + states.reloadGenericAccounts.counter++; 545 + } catch (e) { 546 + console.error(e); 547 + setRelationshipUIState('error'); 548 + } 549 + })(); 550 + }} 551 + > 552 + <Icon icon="unmute" /> 553 + <span> 554 + <Trans> 555 + Unmute <span class="bidi-isolate">@{username}</span> 556 + </Trans> 557 + </span> 558 + </MenuItem> 559 + ) : ( 486 560 <SubMenu2 561 + menuClassName="menu-blur" 487 562 openTrigger="clickOnly" 488 - direction="left" 563 + direction="bottom" 489 564 overflow="auto" 490 565 shift={16} 491 - menuClassName="menu-blur" 492 - menuButton={ 566 + label={ 493 567 <> 568 + <Icon icon="mute" /> 494 569 <span class="menu-grow"> 495 570 <Trans> 496 571 Mute <span class="bidi-isolate">@{username}</span>…
+53 -40
src/locales/en.po
··· 43 43 msgstr "" 44 44 45 45 #: src/components/account-block.jsx:204 46 - #: src/components/related-actions.jsx:807 46 + #: src/components/related-actions.jsx:882 47 47 msgid "Requested" 48 48 msgstr "" 49 49 50 50 #: src/components/account-block.jsx:208 51 - #: src/components/related-actions.jsx:798 51 + #: src/components/related-actions.jsx:873 52 52 msgid "Following" 53 53 msgstr "" 54 54 ··· 161 161 162 162 #: src/components/account-info.jsx:646 163 163 #: src/components/edit-profile-sheet.jsx:92 164 - #: src/components/related-actions.jsx:701 164 + #: src/components/related-actions.jsx:776 165 165 msgid "Edit profile" 166 166 msgstr "" 167 167 ··· 368 368 369 369 #: src/components/compose-poll.jsx:93 370 370 msgid "Multiple choices" 371 - msgstr "" 371 + msgstr "Multiple choices" 372 372 373 373 #: src/components/compose-poll.jsx:96 374 374 msgid "Duration" ··· 1575 1575 msgstr "" 1576 1576 1577 1577 #: src/components/post-embed-modal.jsx:232 1578 + #: src/components/related-actions.jsx:501 1578 1579 #: src/components/shortcuts-settings.jsx:1059 1579 1580 #: src/components/status.jsx:1202 1580 1581 msgid "Copy" ··· 1754 1755 msgid "Show featured profiles" 1755 1756 msgstr "Show featured profiles" 1756 1757 1758 + #: src/components/related-actions.jsx:492 1759 + #: src/components/status.jsx:1193 1760 + msgid "Link copied" 1761 + msgstr "" 1762 + 1757 1763 #: src/components/related-actions.jsx:495 1764 + #: src/components/status.jsx:1196 1765 + msgid "Unable to copy link" 1766 + msgstr "" 1767 + 1768 + #: src/components/related-actions.jsx:516 1769 + #: src/components/shortcuts-settings.jsx:1077 1770 + #: src/components/status.jsx:1218 1771 + msgid "Sharing doesn't seem to work." 1772 + msgstr "" 1773 + 1774 + #: src/components/related-actions.jsx:522 1775 + #: src/components/status.jsx:1224 1776 + msgid "Share…" 1777 + msgstr "" 1778 + 1779 + #: src/components/related-actions.jsx:542 1780 + msgid "Unmuted @{username}" 1781 + msgstr "Unmuted @{username}" 1782 + 1783 + #: src/components/related-actions.jsx:554 1784 + msgid "Unmute <0>@{username}</0>" 1785 + msgstr "Unmute <0>@{username}</0>" 1786 + 1787 + #: src/components/related-actions.jsx:570 1758 1788 msgid "Mute <0>@{username}</0>…" 1759 1789 msgstr "" 1760 1790 1761 1791 #. placeholder {0}: typeof MUTE_DURATIONS_LABELS[duration] === 'function' ? MUTE_DURATIONS_LABELS[duration]() : _(MUTE_DURATIONS_LABELS[duration]) 1762 - #: src/components/related-actions.jsx:527 1792 + #: src/components/related-actions.jsx:602 1763 1793 msgid "Muted @{username} for {0}" 1764 1794 msgstr "Muted @{username} for {0}" 1765 1795 1766 - #: src/components/related-actions.jsx:539 1796 + #: src/components/related-actions.jsx:614 1767 1797 msgid "Unable to mute @{username}" 1768 1798 msgstr "Unable to mute @{username}" 1769 1799 1770 - #: src/components/related-actions.jsx:560 1800 + #: src/components/related-actions.jsx:635 1771 1801 msgid "Remove <0>@{username}</0> from followers?" 1772 1802 msgstr "" 1773 1803 1774 - #: src/components/related-actions.jsx:580 1804 + #: src/components/related-actions.jsx:655 1775 1805 msgid "@{username} removed from followers" 1776 1806 msgstr "@{username} removed from followers" 1777 1807 1778 - #: src/components/related-actions.jsx:592 1808 + #: src/components/related-actions.jsx:667 1779 1809 msgid "Remove follower…" 1780 1810 msgstr "" 1781 1811 1782 - #: src/components/related-actions.jsx:603 1812 + #: src/components/related-actions.jsx:678 1783 1813 msgid "Block <0>@{username}</0>?" 1784 1814 msgstr "" 1785 1815 1786 - #: src/components/related-actions.jsx:627 1816 + #: src/components/related-actions.jsx:702 1787 1817 msgid "Unblocked @{username}" 1788 1818 msgstr "Unblocked @{username}" 1789 1819 1790 - #: src/components/related-actions.jsx:635 1820 + #: src/components/related-actions.jsx:710 1791 1821 msgid "Blocked @{username}" 1792 1822 msgstr "Blocked @{username}" 1793 1823 1794 - #: src/components/related-actions.jsx:643 1824 + #: src/components/related-actions.jsx:718 1795 1825 msgid "Unable to unblock @{username}" 1796 1826 msgstr "Unable to unblock @{username}" 1797 1827 1798 - #: src/components/related-actions.jsx:645 1828 + #: src/components/related-actions.jsx:720 1799 1829 msgid "Unable to block @{username}" 1800 1830 msgstr "Unable to block @{username}" 1801 1831 1802 - #: src/components/related-actions.jsx:655 1832 + #: src/components/related-actions.jsx:730 1803 1833 msgid "Unblock <0>@{username}</0>" 1804 1834 msgstr "" 1805 1835 1806 - #: src/components/related-actions.jsx:664 1836 + #: src/components/related-actions.jsx:739 1807 1837 msgid "Block <0>@{username}</0>…" 1808 1838 msgstr "" 1809 1839 1810 - #: src/components/related-actions.jsx:681 1840 + #: src/components/related-actions.jsx:756 1811 1841 msgid "Report <0>@{username}</0>…" 1812 1842 msgstr "" 1813 1843 1814 - #: src/components/related-actions.jsx:737 1844 + #: src/components/related-actions.jsx:812 1815 1845 msgid "Withdraw follow request?" 1816 1846 msgstr "Withdraw follow request?" 1817 1847 1818 1848 #. placeholder {0}: info.acct || info.username 1819 - #: src/components/related-actions.jsx:738 1849 + #: src/components/related-actions.jsx:813 1820 1850 msgid "Unfollow @{0}?" 1821 1851 msgstr "Unfollow @{0}?" 1822 1852 1823 - #: src/components/related-actions.jsx:801 1853 + #: src/components/related-actions.jsx:876 1824 1854 msgid "Unfollow…" 1825 1855 msgstr "" 1826 1856 1827 - #: src/components/related-actions.jsx:810 1857 + #: src/components/related-actions.jsx:885 1828 1858 msgid "Withdraw…" 1829 1859 msgstr "" 1830 1860 1831 - #: src/components/related-actions.jsx:817 1832 - #: src/components/related-actions.jsx:821 1861 + #: src/components/related-actions.jsx:892 1862 + #: src/components/related-actions.jsx:896 1833 1863 #: src/pages/hashtag.jsx:265 1834 1864 msgid "Follow" 1835 1865 msgstr "" ··· 2246 2276 msgid "Unable to copy shortcut settings" 2247 2277 msgstr "" 2248 2278 2249 - #: src/components/shortcuts-settings.jsx:1077 2250 - #: src/components/status.jsx:1218 2251 - msgid "Sharing doesn't seem to work." 2252 - msgstr "" 2253 - 2254 2279 #: src/components/shortcuts-settings.jsx:1083 2255 2280 msgid "Share" 2256 2281 msgstr "" ··· 2391 2416 2392 2417 #: src/components/status.jsx:1170 2393 2418 msgid "Edited: {editedDateText}" 2394 - msgstr "" 2395 - 2396 - #: src/components/status.jsx:1193 2397 - msgid "Link copied" 2398 - msgstr "" 2399 - 2400 - #: src/components/status.jsx:1196 2401 - msgid "Unable to copy link" 2402 - msgstr "" 2403 - 2404 - #: src/components/status.jsx:1224 2405 - msgid "Share…" 2406 2419 msgstr "" 2407 2420 2408 2421 #: src/components/status.jsx:1251