Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1448 | post delete redirect to user listing
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Dec 22, 2022
1 parent b586669 commit e7a9adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/users/UserManagement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const UserManagement = ({ user }) => {
const onHardDelete = () => {
APIService.users(user.username).appendToUrl('?hardDelete=true').delete().then(response => {
if(response.status === 204)
alertifyjs.success('Successfully deleted this user. Reloading...', 2, () => window.location.reload())
alertifyjs.success('Successfully deleted this user. Reloading...', 2, () => window.location.hash = '/search/?type=users')
else
alertifyjs.error('Something bad happened! Reloading to refresh User state.', 2, () => window.location.reload())
})
Expand Down

0 comments on commit e7a9adc

Please sign in to comment.