-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UI option to block deleted rooms from being rejoined #166
base: master
Are you sure you want to change the base?
Add UI option to block deleted rooms from being rejoined #166
Conversation
Please fix the checks. Try |
IMO during creation of this PR was the master broken. Perhaps it is only necessary to merge current master into this branch. |
src/components/rooms.js
Outdated
export const DeleteRoomButton = props => { | ||
const classes = useStyles(props); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extract the DeleteRoomButton together with the DeleteRoomDialog into a separate file, so it can be reused by other views.
Is there a plan for the 2nd DeleteButton.? synapse-admin/src/components/rooms.js Lines 314 to 319 in 40d0813
At the moment have both buttons (list and detail view) the same function. |
You mean the option shall be implemented for batch deletes as well? Yes, i agree. I'll try to fix this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase onto latest master
@@ -68,7 +68,7 @@ const resourceMap = { | |||
}, | |||
delete: params => ({ | |||
endpoint: `/_synapse/admin/v1/rooms/${params.id}`, | |||
body: { block: false }, | |||
body: { block: !!params.block }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to use params.meta.block
in react-admin 4
This is almost a copy of Awesome-Technologies/synapse-admin#166 PR, authored by @jkanefendt
Add UI option to block deleted rooms from being rejoined This is almost a copy of Awesome-Technologies/synapse-admin#166 PR, authored by @jkanefendt
This PR adds a customized delete room dialog with an option to block the deleted room from being rejoined.