Bug #19960
FE - React - Issue on need to combine the i and a
Status: | Closed | Start date: | 01 March 2024 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | chok yee fan | % Done: | 0% | |
Category: | - | Spent time: | - | |
Target version: | - |
Description
Issue
Go to BusinessConstitutionAction.tsx and at line 22 got
I={ABILITY_CONSTANTS.MODIFY_COUNTRY}
a={ABILITY_CONSTANTS.MODIFY_COUNTRY}
Expected:
Should only have I "I={ABILITY_CONSTANTS.MODIFY_COUNTRY}"
History
#1 Updated by Amirul Umar Pandai 10 months ago
- Status changed from New to Resolved
- Assignee changed from Amirul Umar Pandai to Hazimi Muhammad
You can test by modifying the funcList in App.tsx, or the Can component parameter in *Action.tsx file
e.g. from
<Can I={ABILITY_CONSTANTS.MODIFY_COUNTRY}>
to
<Can I={"TEST"}>
Check if Button is hidden if "I" parameter is not inside funcList
Change CASL Can component to use only 1 parameter
#2 Updated by Hazimi Muhammad 10 months ago
- Status changed from Resolved to Feedback
- Assignee changed from Hazimi Muhammad to chok yee fan
Issue has been solve.
Already check for all page cc_iam,cc_am and common
#3 Updated by chok yee fan 10 months ago
- Status changed from Feedback to Closed
search the code, the <Can> only pass in 1 param