Skip to content

Commit

Permalink
Update spinner to stop when error is retuned. (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-labbate authored Oct 23, 2024
1 parent 4de3344 commit 0559ef9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions training-front-end/src/components/AdminEditUserDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ async function update_user_info() {
try{
let updatedUser = await adminRepository.updateUser(props.userToEdit.id, user_data)
is_saving.value = false
show_spinner.value = false
let successMessage = `Successfully updated ${updatedUser.email}`
emit('completeUserUpdate', successMessage)
} catch(err){
Expand All @@ -89,6 +87,9 @@ async function update_user_info() {
message: err
})
}
is_saving.value = false
show_spinner.value = false
}
function clearErrors(){
Expand Down

0 comments on commit 0559ef9

Please sign in to comment.