mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
show error and loading state
This commit is contained in:
@@ -6,9 +6,7 @@ export function updatePassword(url: string, password: string) {
|
||||
return apiClient
|
||||
.put(url, { newPassword: password }, CONTENT_TYPE_USER)
|
||||
.then(response => {
|
||||
return {
|
||||
status: response.status
|
||||
};
|
||||
return response;
|
||||
})
|
||||
.catch(err => {
|
||||
return { error: err };
|
||||
|
||||
Reference in New Issue
Block a user