diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-09-20 23:51:21 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-10-02 19:36:29 +0200 |
commit | f416e36f0fb68379cbb0cd019c5a8f435f9ab988 (patch) | |
tree | 99fe7ffe9ec14781d508dc03286731ea4b22966d /app/javascript/flavours/glitch/features/account_timeline/containers | |
parent | d25de7f01ee04498c13a433f6c3044fa50392dc0 (diff) |
[Glitch] Add ability to filter followed accounts' posts by language
Port 50948b46aabc0756d85bc6641f0bd3bcc09bf7d4 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/account_timeline/containers')
-rw-r--r-- | app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js b/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js index 3fa7c1448..dc8b2d55a 100644 --- a/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js +++ b/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js @@ -130,12 +130,18 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ dispatch(unblockDomain(domain)); }, - onAddToList(account){ + onAddToList (account) { dispatch(openModal('LIST_ADDER', { accountId: account.get('id'), })); }, + onChangeLanguages (account) { + dispatch(openModal('SUBSCRIBED_LANGUAGES', { + accountId: account.get('id'), + })); + }, + }); export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Header)); |