Add unchangeable filtered notification setting for limited accounts (#31324)
This commit is contained in:
parent
84c3cc4e5b
commit
f8629367d2
2 changed files with 20 additions and 0 deletions
|
@ -7,6 +7,9 @@ import { useAppSelector, useAppDispatch } from 'mastodon/store';
|
|||
|
||||
import { CheckboxWithLabel } from './checkbox_with_label';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
const noop = () => {};
|
||||
|
||||
export const PolicyControls: React.FC = () => {
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
|
@ -135,6 +138,21 @@ export const PolicyControls: React.FC = () => {
|
|||
/>
|
||||
</span>
|
||||
</CheckboxWithLabel>
|
||||
|
||||
<CheckboxWithLabel checked disabled onChange={noop}>
|
||||
<strong>
|
||||
<FormattedMessage
|
||||
id='notifications.policy.filter_limited_accounts_title'
|
||||
defaultMessage='Moderated accounts'
|
||||
/>
|
||||
</strong>
|
||||
<span className='hint'>
|
||||
<FormattedMessage
|
||||
id='notifications.policy.filter_limited_accounts_hint'
|
||||
defaultMessage='Limited by server moderators'
|
||||
/>
|
||||
</span>
|
||||
</CheckboxWithLabel>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue