mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-20 14:42:58 -05:00
[Glitch] Add unchangeable filtered notification setting for limited accounts
Port f8629367d2cbb6495bb81d5357611e3759dbf35a to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
48e4c57905
commit
ca6ad45121
@ -7,6 +7,9 @@ import { useAppSelector, useAppDispatch } from 'flavours/glitch/store';
|
|||||||
|
|
||||||
import { CheckboxWithLabel } from './checkbox_with_label';
|
import { CheckboxWithLabel } from './checkbox_with_label';
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||||
|
const noop = () => {};
|
||||||
|
|
||||||
export const PolicyControls: React.FC = () => {
|
export const PolicyControls: React.FC = () => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
@ -135,6 +138,21 @@ export const PolicyControls: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</CheckboxWithLabel>
|
</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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user