(uischema: UISchemaElement)
| 190 | }; |
| 191 | |
| 192 | export const hasEnableRule = (uischema: UISchemaElement): boolean => { |
| 193 | if ( |
| 194 | uischema.rule && |
| 195 | (uischema.rule.effect === RuleEffect.ENABLE || |
| 196 | uischema.rule.effect === RuleEffect.DISABLE) |
| 197 | ) { |
| 198 | return true; |
| 199 | } |
| 200 | return false; |
| 201 | }; |
| 202 | |
| 203 | export const hasReadonlyRule = (uischema: UISchemaElement): boolean => { |
| 204 | if ( |
no outgoing calls
no test coverage detected
searching dependent graphs…