mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
add confirm dialog after click on button
This commit is contained in:
@@ -167,6 +167,7 @@ function deleteUserFailure(url: string, err: Error) {
|
||||
}
|
||||
|
||||
export function deleteUser(link: string) {
|
||||
|
||||
return function(dispatch: ThunkDispatch) {
|
||||
dispatch(requestDeleteUser(link));
|
||||
return apiClient
|
||||
@@ -177,6 +178,7 @@ export function deleteUser(link: string) {
|
||||
})
|
||||
.catch(err => dispatch(deleteUserFailure(link, err)));
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
export default function reducer(state: any = {}, action: any = {}) {
|
||||
|
||||
Reference in New Issue
Block a user