diff --git a/src/pages/BandoEdit/components/BandoEditFormActions/index.js b/src/pages/BandoEdit/components/BandoEditFormActions/index.js
index f325153..3b65462 100644
--- a/src/pages/BandoEdit/components/BandoEditFormActions/index.js
+++ b/src/pages/BandoEdit/components/BandoEditFormActions/index.js
@@ -5,12 +5,13 @@ import { isNil } from 'ramda';
// components
import { Button } from 'primereact/button';
-const BandoEditFormActions = ({ id, openPreview, openPreviewEvaluation, status }) => {
+const BandoEditFormActions = ({ id, openPreview, openPreviewEvaluation, submitFn }) => {
return (
}
+ const getRolesCallback = (data) => {
+ if (data.status === 'SUCCESS') {
+ const roles = data.data.map(o => ({
+ name: o.roleName,
+ value: o.id
+ }));
+ setRoles(roles)
+ }
+ storeSet.main.unsetAsyncRequest();
+ }
+
+ const errGetRolesCallback = (data) => {
+ set404FromErrorResponse(data);
+ storeSet.main.unsetAsyncRequest();
+ }
+
+ useEffect(() => {
+ if (isVisibleEditDialog) {
+ UserService.getRoles(getRolesCallback, errGetRolesCallback)
+ }
+ }, [isVisibleEditDialog]);
+
return(
@@ -64,24 +104,44 @@ const Users = () => {