mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-04-28 17:56:49 +02:00
webui: Add debug switch to Room Details
This commit is contained in:
parent
dc997e240e
commit
d95ea63dd8
1 changed files with 12 additions and 1 deletions
|
@ -61,7 +61,18 @@ const RoomDetailInner = ({initialQueryRef}: PropsFinal) => {
|
|||
}
|
||||
}
|
||||
})
|
||||
}} disabled={reconfiguringRoom || ((data.room || false) && !data.room.active && !data.room.deactivated)} checked={data.room?.active}/>
|
||||
}} disabled={reconfiguringRoom || ((data.room || false) && !data.room.active && !data.room.deactivated)} checked={data.room?.active}/><br/>
|
||||
|
||||
<ToggleButton name={"debugSwitch"} label={"Debug-Mode"} labelSrOnly={false} onChange={(ev) => {
|
||||
reconfigureRoom({
|
||||
variables: {
|
||||
reconfigureInput: {
|
||||
id: data.room?.id!,
|
||||
debug: ev.currentTarget.checked
|
||||
}
|
||||
}
|
||||
})
|
||||
}} disabled={reconfiguringRoom || (!data.room)} checked={data.room?.debug}/>
|
||||
|
||||
|
||||
<pre>{JSON.stringify(data, null, 2)}</pre>
|
||||
|
|
Loading…
Add table
Reference in a new issue