CFE-4 check and set the api

This commit is contained in:
2023-10-10 11:38:09 +03:30
parent 99b4128cd9
commit 9c74c18089
14 changed files with 94 additions and 62 deletions

View File

@@ -134,8 +134,8 @@ function DataTable(props) {
renderTopToolbarCustomActions={({table}) => (
<>
{props.enableCustomToolbar /* send condition */
? props.CustomToolbar /* send component */
: ""}
? <props.CustomToolbar fetchUrl={fetchUrl} mutate={mutate} /> /* send component */
: "<span></span>"}
</>
)}
renderBottomToolbarCustomActions={({table}) => (

View File

@@ -23,5 +23,5 @@ export const DELETE_ROLE_MANAGEMENT =
BASE_URL + "/api/roles"
export const GET_PERMISSIONS_LIST =
BASE_URL + "/api/roles/list"
BASE_URL + "/api/permissions/list"
//role management