about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2020-04-19 04:52:39 +0900
committerGitHub <noreply@github.com>2020-04-18 21:52:39 +0200
commit2c7128c7f0ee3073acb9897cda88255982368193 (patch)
treec9036cd0d7a023f0532ad35e9362ebb3f19d2af4 /app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
parenta1ce9cbb67facf705379355b9c8ec19c521b419c (diff)
Add local only to hashtag timeline (#13502)
Diffstat (limited to 'app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js')
-rw-r--r--app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js b/app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
index 9c39b158a..956f16734 100644
--- a/app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
+++ b/app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
@@ -4,6 +4,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
 import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
 import Toggle from 'react-toggle';
 import AsyncSelect from 'react-select/async';
+import SettingToggle from '../../notifications/components/setting_toggle';
 
 const messages = defineMessages({
   placeholder: { id: 'hashtag.column_settings.select.placeholder', defaultMessage: 'Enter hashtags…' },
@@ -87,6 +88,8 @@ class ColumnSettings extends React.PureComponent {
   };
 
   render () {
+    const { settings, onChange } = this.props;
+
     return (
       <div>
         <div className='column-settings__row'>
@@ -106,6 +109,10 @@ class ColumnSettings extends React.PureComponent {
             {this.modeSelect('none')}
           </div>
         )}
+
+        <div className='column-settings__row'>
+          <SettingToggle settings={settings} settingPath={['local']} onChange={onChange} label={<FormattedMessage id='community.column_settings.local_only' defaultMessage='Local only' />} />
+        </div>
       </div>
     );
   }