Skip to content

Commit

Permalink
Add missing componentIds
Browse files Browse the repository at this point in the history
  • Loading branch information
PasinduYeshan committed Aug 21, 2024
1 parent 5c8ef39 commit b32ea25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export const PasswordExpiryRuleList: FunctionComponent<PasswordExpiryRuleListPro

return (
valueOptions.map((item: Resource) => (
<MenuItem key={ item.id } value={ item.id } className="flex-row-gap-10 ">
<MenuItem key={ item.id } value={ item.id } className="flex-row-gap-10">
<Checkbox checked={ rule?.values.indexOf(item.id) > -1 } />
<Chip label={ getResourceIdentifier(item, isRoleAttribute) } />
<ListItemText primary={ getResourceDisplayName(item, isRoleAttribute) } />
Expand Down Expand Up @@ -377,7 +377,7 @@ export const PasswordExpiryRuleList: FunctionComponent<PasswordExpiryRuleListPro
<TextField
type="number"
value={ defaultPasswordExpiryTime }

data-componentid={ `${componentId}-default-expiry-time` }
onChange={ handleDefaultExpiryTimeChange }
disabled={ !isPasswordExpiryEnabled }
inputProps={ {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -969,13 +969,14 @@ export const ValidationConfigEditPage: FunctionComponent<MyAccountSettingsEditPa
<Switch
checked={ passwordExpiryEnabled }
disabled={ isReadOnly }
data-componentid={ `${ componentId }-password-expiry-toggle` }
onChange={
() => setPasswordExpiryEnabled(!passwordExpiryEnabled)
} />
</Heading>
</div>
<PasswordExpiryRuleList
componentId={ "`${componentId}-password-expiry-rules`" }
componentId={ `${componentId}-password-expiry-rules` }
isPasswordExpiryEnabled={ passwordExpiryEnabled }
isSkipFallbackEnabled={ passwordExpirySkipFallback }
defaultPasswordExpiryTime={ defaultPasswordExpiryTime }
Expand Down

0 comments on commit b32ea25

Please sign in to comment.