Skip to content

Commit

Permalink
[bugfix] modify popup confirm to clear cache and cancel popup save (#…
Browse files Browse the repository at this point in the history
…2026)

Co-authored-by: tomsun28 <tomsun28@outlook.com>
  • Loading branch information
Yanshuming1 and tomsun28 committed May 23, 2024
1 parent 7a670e8 commit 8115e39
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,17 @@ export class AlertSettingComponent implements OnInit {
}

onManageModalCancel() {
this.isExpr = false;
this.isManageModalVisible = false;
}

resetManageModalData() {
this.cascadeValues = [];
this.alertRules = [{}];
this.isExpr = false;
this.isManageModalVisible = false;
}

onManageModalOk() {
this.isManageModalOkLoading = true;
this.define.app = this.cascadeValues[0];
Expand Down Expand Up @@ -568,6 +574,7 @@ export class AlertSettingComponent implements OnInit {
this.isManageModalVisible = false;
this.notifySvc.success(this.i18nSvc.fanyi('common.notify.new-success'), '');
this.loadAlertDefineTable();
this.resetManageModalData();
} else {
this.notifySvc.error(this.i18nSvc.fanyi('common.notify.new-fail'), message.msg);
}
Expand Down

0 comments on commit 8115e39

Please sign in to comment.