Skip to content

Commit

Permalink
fix: Create Permission amd Create Super Permission
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng authored and timopollmeier committed Dec 2, 2024
1 parent 553eb90 commit 7340829
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/web/pages/roles/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@ const Dialog = ({
!isDefined(state.permissionName)
}
isLoading={isCreatingPermission}
value={{roleId: state.id, name: state.permissionName}}
onClick={onCreatePermission}
onClick={() =>
onCreatePermission({
roleId: state.id,
name: state.permissionName,
})
}
/>
</FormGroup>

Expand All @@ -160,8 +164,12 @@ const Dialog = ({
title={_('Create Permission')}
disabled={!hasGroups || !isDefined(state.groupId)}
isLoading={isCreatingSuperPermission}
value={{roleId: state.id, groupId: state.groupId}}
onClick={onCreateSuperPermission}
onClick={() =>
onCreateSuperPermission({
roleId: state.id,
groupId: state.groupId,
})
}
/>
</FormGroup>

Expand Down

0 comments on commit 7340829

Please sign in to comment.