-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disable member extension in role and group review #2794
base: master
Are you sure you want to change the base?
disable member extension in role and group review #2794
Conversation
…nsion days are not set in settings Signed-off-by: aporss <[email protected]>
<div | ||
className='close-button' | ||
onClick={this.props.onClose} | ||
data-wdio={'alert-close'} | ||
> | ||
<Icon | ||
color={rgba(colors.grey800, 0.4)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to close confirmation tooltip in ui during functional tests and thus make test execution faster
justification={this.props.justification} | ||
expiryOrReviewSettingIsSet={ | ||
0 < | ||
getSmallestExpiryOrReview( | ||
this.props.collectionDetails | ||
) | ||
} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if expiry or review days in Group or Role are present, then pass true
here
value='extend' | ||
checked={this.state.selectedOption === 'extend'} | ||
onChange={this.onReview} | ||
disabled={!this.props.expiryOrReviewSettingIsSet} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if expiry or review days not set - disable Extend option
this.onReview = this.onReview.bind(this); | ||
let selectedOption = 'extend'; | ||
let selectedOption = this.props.expiryOrReviewSettingIsSet | ||
? 'extend' | ||
: 'no-action'; | ||
this.state = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if expiry or review days set, then during a review the default option is extend, otherwise - no action
Description
disable member extension in role and group review when extension or review (days) are not set role/group in settings
Contribution Checklist: