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 d34372308 [bugfix] fix the front-end popup cannot exit (#1957)
d34372308 is described below

commit d34372308e0c3b897643bb77c5a3c3bf9c13c69c
Author: xiaoming student <[email protected]>
AuthorDate: Sat May 11 21:33:57 2024 +0800

    [bugfix] fix the front-end popup cannot exit (#1957)
    
    Signed-off-by: tomsun28 <[email protected]>
    Co-authored-by: tomsun28 <[email protected]>
---
 .../src/app/routes/alert/alert-setting/alert-setting.component.html    | 1 +
 web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts  | 3 +++
 2 files changed, 4 insertions(+)

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 83362d7dd..e4cd5144d 100644
--- 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
@@ -644,6 +644,7 @@
 <nz-modal
   [(nzVisible)]="isSwitchExportTypeModalVisible"
   [nzTitle]="'alert.export.switch-type' | i18n"
+  (nzOnCancel)="onExportTypeModalCancel()"
   nzOkDisabled="true"
   [nzFooter]="switchExportTypeModalFooter"
 >
diff --git 
a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts 
b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts
index 380fcf79d..b96044be5 100644
--- a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts
+++ b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts
@@ -710,6 +710,9 @@ export class AlertSettingComponent implements OnInit {
   onConnectModalCancel() {
     this.isConnectModalVisible = false;
   }
+  onExportTypeModalCancel() {
+    this.isSwitchExportTypeModalVisible = false;
+  }
   onConnectModalOk() {
     this.isConnectModalOkLoading = true;
     let defineBinds: AlertDefineBind[] = [];


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to