Disable moderation for user's own mutelist

This commit is contained in:
Bojan Mojsilovic 2023-08-31 15:41:19 +02:00
parent 05f9ce10c3
commit eba95df646
3 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "primal-web-app", "name": "primal-web-app",
"version": "0.77.17", "version": "0.77.18",
"description": "", "description": "",
"scripts": { "scripts": {
"start": "vite", "start": "vite",

View File

@ -9,6 +9,7 @@ const Checkbox: Component<{
label?: string, label?: string,
icon?: string, icon?: string,
children?: JSXElement, children?: JSXElement,
disabled?: boolean,
}> = (props) => { }> = (props) => {
return ( return (
@ -18,6 +19,7 @@ const Checkbox: Component<{
type='checkbox' type='checkbox'
checked={props.checked} checked={props.checked}
onChange={props.onChange} onChange={props.onChange}
disabled={props.disabled}
/> />
<Show when={props.icon}> <Show when={props.icon}>
<img src={props.icon} /> <img src={props.icon} />

View File

@ -240,6 +240,7 @@ const Moderation: Component = () => {
id={`${my()?.pubkey}_content`} id={`${my()?.pubkey}_content`}
onChange={() => account?.actions.updateFilterList(my()?.pubkey, !my()?.content, my()?.trending)} onChange={() => account?.actions.updateFilterList(my()?.pubkey, !my()?.content, my()?.trending)}
checked={my()?.content} checked={my()?.content}
disabled={true}
/> />
</div> </div>
<div class={styles.filterListCheck}> <div class={styles.filterListCheck}>
@ -247,6 +248,7 @@ const Moderation: Component = () => {
id={`${my()?.pubkey}_trending`} id={`${my()?.pubkey}_trending`}
onChange={() => account?.actions.updateFilterList(my()?.pubkey, my()?.content, !my()?.trending)} onChange={() => account?.actions.updateFilterList(my()?.pubkey, my()?.content, !my()?.trending)}
checked={my()?.trending} checked={my()?.trending}
disabled={true}
/> />
</div> </div>
</div> </div>