This is an automated email from the ASF dual-hosted git repository.
gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 20f3b0125 Optimize the [Threshold Rule] Form. (#2190)
20f3b0125 is described below
commit 20f3b01251bdbc070d7437251c486a679a37039a
Author: Kerwin Bryant <[email protected]>
AuthorDate: Thu Jul 4 18:56:08 2024 +0800
Optimize the [Threshold Rule] Form. (#2190)
Co-authored-by: tomsun28 <[email protected]>
---
.../src/app/routes/alert/alert-setting/alert-setting.component.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html
b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html
index 1fd6bf65f..4bd07dd0d 100755
--- a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html
+++ b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html
@@ -209,7 +209,7 @@
></nz-cascader>
</nz-form-control>
</nz-form-item>
- <nz-form-item>
+ <nz-form-item *ngIf="cascadeValues.length != 2">
<nz-form-label [nzSpan]="7" nzFor="rule" nzRequired="true"
[nzTooltipTitle]="'alert.setting.rule.label' | i18n">
{{ 'alert.setting.rule' | i18n }}
</nz-form-label>
@@ -229,7 +229,7 @@
{{ 'alert.setting.rule.switch-expr.1' | i18n }}
</label>
</nz-radio-group>
- <div *ngIf="cascadeValues.length != 2 && isExpr" style="margin-top:
5px">
+ <div *ngIf="isExpr" style="margin-top: 5px">
<nz-textarea-count [nzMaxCharacterCount]="100">
<textarea
[(ngModel)]="define.expr"
@@ -270,7 +270,7 @@
</nz-collapse-panel>
</nz-collapse>
</div>
- <div *ngIf="cascadeValues.length != 2 && !isExpr" style="margin-top:
5px">
+ <div *ngIf="!isExpr" style="margin-top: 5px">
<div id="rule">
<div style="width: 100%; margin-bottom: 2px" nz-row *ngFor="let
alertRule of alertRules; let i = index">
<nz-select
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]