From 4b14053b2c533bbe1fad1204f96628752cab20ac Mon Sep 17 00:00:00 2001 From: Kenrick Tandrian <60643640+KenTandrian@users.noreply.github.com> Date: Thu, 8 Oct 2026 22:16:25 +0700 Subject: [PATCH] Task/resolve strict template errors in rule settings dialog (#8084) Resolve strict template errors --- .../rule-settings-dialog.html | 236 +++++++++--------- 1 file changed, 122 insertions(+), 114 deletions(-) diff --git a/apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html b/apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html index 618626b63e..14fe4d228f 100644 --- a/apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html +++ b/apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html @@ -6,123 +6,131 @@ (ngSubmit)="onSubmit()" >
- @if ( - data.rule.configuration?.thresholdMin && - data.rule.configuration?.thresholdMax - ) { -
-
- Threshold range: - - - - -
-
- - - - - - + @if (data.rule.configuration?.threshold; as threshold) { + @if ( + data.rule.configuration.thresholdMin && + data.rule.configuration.thresholdMax + ) { +
+
+ Threshold range: + + - + +
+
+ + + + + + +
-
- } @else { -
-
- Threshold Min: - -
-
- - - - - + } @else { +
+
+ Threshold Min: + +
+
+ + + + + +
-
-
-
- Threshold Max: - -
-
- - - - - +
+
+ Threshold Max: + +
+
+ + + + + +
-
+ } }