Client:PortalSettings:OAuth2: hide write checkbox for openid

This commit is contained in:
Timofey Boyko 2023-12-05 13:30:12 +03:00
parent 55d7dbcd64
commit 71c42ce188

View File

@ -171,6 +171,7 @@ const ScopesBlock = ({
/> />
</StyledScopesCheckbox> </StyledScopesCheckbox>
<StyledScopesCheckbox> <StyledScopesCheckbox>
{scope.read?.name && (
<Checkbox <Checkbox
isChecked={isReadDisabled} isChecked={isReadDisabled}
isDisabled={isEdit || !scope.read?.name} isDisabled={isEdit || !scope.read?.name}
@ -182,6 +183,7 @@ const ScopesBlock = ({
) )
} }
/> />
)}
</StyledScopesCheckbox> </StyledScopesCheckbox>
</React.Fragment> </React.Fragment>
); );