Skip to content

Commit

Permalink
Merge pull request #1531 from memphisdev/feature-RND-350-broker-ui-ad…
Browse files Browse the repository at this point in the history
…ding-user-didnt-show-loader-on-button-and-not-disabled-while-sending-request

Broker UI adding user didn’t show loader on button and not disabled w…
  • Loading branch information
otabek-memphis authored Dec 19, 2023
2 parents 79d58e7 + 89c9fb9 commit 6ca9f0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui_src/src/domain/users/createUserDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const CreateUserDetails = ({ createUserRef, closeModal, handleLoader, userList,
return;
}
try {
handleLoader(true);
const bodyRequest = fieldsValue;
const data = await httpRequest('POST', ApiEndpoints.ADD_USER, bodyRequest);
if (data) {
Expand All @@ -97,6 +98,7 @@ const CreateUserDetails = ({ createUserRef, closeModal, handleLoader, userList,
} catch (error) {
handleLoader(false);
} finally {
handleLoader(false);
getAllowedActions();
}
}
Expand Down

0 comments on commit 6ca9f0d

Please sign in to comment.