mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Disable moderation for user's own mutelist
This commit is contained in:
parent
05f9ce10c3
commit
eba95df646
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "primal-web-app",
|
||||
"version": "0.77.17",
|
||||
"version": "0.77.18",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
|
@ -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} />
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user