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 3562e870d [improve] Add required field indicators and form validation
prompts for convergence strategies and silent strategies in the form. (#2913)
3562e870d is described below
commit 3562e870d8b2f0add9313c58f7607bd84dc078a7
Author: yunfan24 <[email protected]>
AuthorDate: Mon Dec 30 13:04:03 2024 +0800
[improve] Add required field indicators and form validation prompts for
convergence strategies and silent strategies in the form. (#2913)
Co-authored-by: tomsun28 <[email protected]>
---
.../app/routes/alert/alert-converge/alert-converge.component.html | 8 ++++----
.../app/routes/alert/alert-silence/alert-silence.component.html | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git
a/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html
b/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html
index 30390c000..09bc97e29 100644
--- a/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html
+++ b/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html
@@ -156,8 +156,8 @@
</nz-form-control>
</nz-form-item>
<nz-form-item *ngIf="!converge.matchAll">
- <nz-form-label nzSpan="10" nzFor="tags">{{ 'alert.converge.tags' |
i18n }}</nz-form-label>
- <nz-form-control nzSpan="8">
+ <nz-form-label nzSpan="10" nzRequired="true" nzFor="tags">{{
'alert.converge.tags' | i18n }}</nz-form-label>
+ <nz-form-control nzSpan="8" [nzErrorTip]="'validation.required' |
i18n">
<nz-select
[(ngModel)]="matchTags"
[nzDisabled]="converge.matchAll"
@@ -177,8 +177,8 @@
</nz-form-control>
</nz-form-item>
<nz-form-item *ngIf="!converge.matchAll">
- <nz-form-label nzSpan="10" nzFor="priorities">{{
'alert.converge.priority' | i18n }}</nz-form-label>
- <nz-form-control nzSpan="8">
+ <nz-form-label nzSpan="10" nzRequired="true" nzFor="priorities">{{
'alert.converge.priority' | i18n }}</nz-form-label>
+ <nz-form-control nzSpan="8" [nzErrorTip]="'validation.required' |
i18n">
<nz-select
[(ngModel)]="converge.priorities"
[nzDisabled]="converge.matchAll"
diff --git
a/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html
b/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html
index 6c7d3d529..08179266c 100755
--- a/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html
+++ b/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html
@@ -165,8 +165,8 @@
</nz-form-control>
</nz-form-item>
<nz-form-item *ngIf="!silence.matchAll">
- <nz-form-label nzSpan="7" nzFor="tags">{{ 'alert.silence.tags' | i18n
}}</nz-form-label>
- <nz-form-control nzSpan="12">
+ <nz-form-label nzSpan="7" nzFor="tags" nzRequired="true">{{
'alert.silence.tags' | i18n }}</nz-form-label>
+ <nz-form-control nzSpan="12" [nzErrorTip]="'validation.required' |
i18n">
<nz-select
[(ngModel)]="matchTags"
[nzDisabled]="silence.matchAll"
@@ -186,8 +186,8 @@
</nz-form-control>
</nz-form-item>
<nz-form-item *ngIf="!silence.matchAll">
- <nz-form-label nzSpan="7" nzFor="priorities">{{
'alert.silence.priority' | i18n }}</nz-form-label>
- <nz-form-control nzSpan="12">
+ <nz-form-label nzSpan="7" nzFor="priorities" nzRequired="true">{{
'alert.silence.priority' | i18n }}</nz-form-label>
+ <nz-form-control nzSpan="12" [nzErrorTip]="'validation.required' |
i18n">
<nz-select
[(ngModel)]="silence.priorities"
[nzDisabled]="silence.matchAll"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]