Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ArtjomsPorss
Copy link
Contributor

@ArtjomsPorss ArtjomsPorss commented Nov 8, 2024

Description

disable member extension in role and group review when extension or review (days) are not set role/group in settings

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

…nsion days are not set in settings

Signed-off-by: aporss <[email protected]>
Comment on lines 226 to 232
<div
className='close-button'
onClick={this.props.onClose}
data-wdio={'alert-close'}
>
<Icon
color={rgba(colors.grey800, 0.4)}
Copy link
Contributor Author

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

Comment on lines 118 to 125
justification={this.props.justification}
expiryOrReviewSettingIsSet={
0 <
getSmallestExpiryOrReview(
this.props.collectionDetails
)
}
/>
Copy link
Contributor Author

@ArtjomsPorss ArtjomsPorss Nov 8, 2024

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

Comment on lines 130 to 134
value='extend'
checked={this.state.selectedOption === 'extend'}
onChange={this.onReview}
disabled={!this.props.expiryOrReviewSettingIsSet}
/>
Copy link
Contributor Author

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

Comment on lines 46 to 50
this.onReview = this.onReview.bind(this);
let selectedOption = 'extend';
let selectedOption = this.props.expiryOrReviewSettingIsSet
? 'extend'
: 'no-action';
this.state = {
Copy link
Contributor Author

@ArtjomsPorss ArtjomsPorss Nov 8, 2024

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

@ArtjomsPorss ArtjomsPorss marked this pull request as ready for review November 8, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant