Bug #19960

FE - React - Issue on need to combine the i and a

Added by Hazimi Muhammad 8 months ago. Updated 8 months ago.

Status:ClosedStart date:01 March 2024
Priority:NormalDue 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 8 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

https://dev.silverlakemobility.com/gitlab/mleb-solution-domain/smesd100/mleb-iam/-/commit/fac8851ff131a1219a5ae7b9e4551bef0f478944

#2 Updated by Hazimi Muhammad 8 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 8 months ago

  • Status changed from Feedback to Closed

search the code, the <Can> only pass in 1 param

Also available in: Atom PDF