diff --git a/source/components/rule/Algorithm.js b/source/components/rule/Algorithm.js
index bdbc7ddb9..cd5575171 100644
--- a/source/components/rule/Algorithm.js
+++ b/source/components/rule/Algorithm.js
@@ -8,18 +8,20 @@ import './Algorithm.css'
import { ShowValuesProvider } from './ShowValuesContext'
let Conditions = ({
+ 'rendu non applicable': disabledBy,
parentDependency,
'applicable si': applicable,
'non applicable si': notApplicable
}) => {
let listElements = [
parentDependency?.nodeValue === false && (
-
-
- Désactivée
- {' '}
- car dépend de {makeJsx(parentDependency)}
-
+
+ ),
+ ...disabledBy?.explanation?.isDisabledBy?.map(
+ (dependency, i) =>
+ dependency?.nodeValue === true && (
+
+ )
),
applicable && {makeJsx(applicable)},
notApplicable && {makeJsx(notApplicable)}
@@ -35,6 +37,17 @@ let Conditions = ({
) : null
}
+function ShowIfDisabled({ dependency }) {
+ return (
+
+
+ Désactivée
+ {' '}
+ car dépend de {makeJsx(dependency)}
+
+ )
+}
+
export default compose(withTranslation())(
class Algorithm extends React.Component {
render() {
diff --git a/source/components/rule/Rule.js b/source/components/rule/Rule.js
index 1118f206f..ba689b0af 100644
--- a/source/components/rule/Rule.js
+++ b/source/components/rule/Rule.js
@@ -1,4 +1,5 @@
import { T } from 'Components'
+import PeriodSwitch from 'Components/PeriodSwitch'
import withColours from 'Components/utils/withColours'
import withLanguage from 'Components/utils/withLanguage'
import withSitePaths from 'Components/utils/withSitePaths'
@@ -31,7 +32,6 @@ import Examples from './Examples'
import RuleHeader from './Header'
import References from './References'
import './Rule.css'
-import PeriodSwitch from 'Components/PeriodSwitch'
let LazySource = React.lazy(() => import('./RuleSource'))
@@ -166,7 +166,9 @@ export default compose(
/>
{displayedRule['rend non applicable'] && (
- Rend non applicable :
+
+ Rend non applicable les règles suivantes :{' '}
+