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",
|
"name": "primal-web-app",
|
||||||
"version": "0.77.17",
|
"version": "0.77.18",
|
||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
|
@ -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} />
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user