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

OFS-287: Disable System checkbox #24

Merged
merged 1 commit into from
Jun 11, 2021
Merged

OFS-287: Disable System checkbox #24

merged 1 commit into from
Jun 11, 2021

Conversation

rstencel
Copy link
Contributor

@rstencel rstencel commented May 7, 2021

@rstencel rstencel requested a review from delcroip May 7, 2021 08:54
@@ -58,7 +58,7 @@ class RoleHeadPanel extends FormPanel {
control={<Checkbox
checked={!!edited && !!edited.isSystem && edited.isSystem}
onChange={event => this.updateAttribute("isSystem", event.target.checked)}
disabled={!!isReadOnly}
disabled={!!edited && !!edited.id}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not disabled=True

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When creating a new Role we want to be able to set System to either true or false, correct? As I understand, this checkbox should be disabled only when editing/duplicating a Role.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it should never be editable, it is for display only (system roles are created with database scripts)

@rstencel rstencel marked this pull request as draft May 23, 2021 16:41
@rstencel rstencel marked this pull request as ready for review June 11, 2021 10:07
@delcroip delcroip merged commit 1015e7a into develop Jun 11, 2021
@delcroip delcroip deleted the feature/OFS-287 branch April 25, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants