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",
"version": "0.77.17",
"version": "0.77.18",
"description": "",
"scripts": {
"start": "vite",

View File

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

View File

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