Skip to content

Commit

Permalink
[bugfix] replace monitors to alert. (#1954)
Browse files Browse the repository at this point in the history
Co-authored-by: tomsun28 <[email protected]>
  • Loading branch information
zqr10159 and tomsun28 authored May 10, 2024
1 parent 6931835 commit 93477a5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,27 +643,27 @@
<!-- 导出告警定义弹出框 -->
<nz-modal
[(nzVisible)]="isSwitchExportTypeModalVisible"
[nzTitle]="'monitors.export.switch-type' | i18n"
[nzTitle]="'alert.export.switch-type' | i18n"
nzOkDisabled="true"
[nzFooter]="switchExportTypeModalFooter"
>
<ng-container *nzModalContent>
<p style="text-align: center">
<button nz-button nzType="primary" nzSize="large" (click)="exportDefines('YAML')" [nzLoading]="exportYamlButtonLoading">
<span nz-icon nzType="download"></span>
{{ 'monitors.export.use-type' | i18n : { type: 'YAML' } }}
{{ 'alert.export.use-type' | i18n : { type: 'YAML' } }}
</button>
</p>
<p style="text-align: center">
<button nz-button nzType="primary" nzSize="large" (click)="exportDefines('JSON')" [nzLoading]="exportJsonButtonLoading">
<span nz-icon nzType="download"></span>
{{ 'monitors.export.use-type' | i18n : { type: 'JSON' } }}
{{ 'alert.export.use-type' | i18n : { type: 'JSON' } }}
</button>
</p>
<p style="text-align: center">
<button nz-button nzType="primary" nzSize="large" (click)="exportDefines('EXCEL')" [nzLoading]="exportExcelButtonLoading">
<span nz-icon nzType="download"></span>
{{ 'monitors.export.use-type' | i18n : { type: 'EXCEL' } }}
{{ 'alert.export.use-type' | i18n : { type: 'EXCEL' } }}
</button>
</p>
</ng-container>
Expand Down
2 changes: 2 additions & 0 deletions web-app/src/assets/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"alert.notice.sender.mail.port": "Email Port",
"alert.notice.sender.mail.ssl": "Enable SSL",
"alert.notice.sender.mail.enable": "Enable Email Configuration",
"alert.export.switch-type": "Please select the export file format!",
"alert.export.use-type": "Export rules in {{type}} file format",
"dashboard.alerts.title": "Recently Alarms List",
"dashboard.alerts.title-no": "Recently Pending Alarms",
"dashboard.alerts.no": "No Pending Alarms",
Expand Down
2 changes: 2 additions & 0 deletions web-app/src/assets/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@
"alert.notice.sender.mail.port": "邮箱端口",
"alert.notice.sender.mail.ssl": "是否启用SSL",
"alert.notice.sender.mail.enable": "是否启用邮箱配置",
"alert.export.switch-type": "请选择导出文件格式!",
"alert.export.use-type": "以 {{type}} 文件格式导出阈值规则",
"dashboard.alerts.title": "最近告警列表",
"dashboard.alerts.title-no": "最近未处理告警",
"dashboard.alerts.no": "暂无未处理告警",
Expand Down
2 changes: 2 additions & 0 deletions web-app/src/assets/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
"alert.notice.sender.mail.port": "郵件端口",
"alert.notice.sender.mail.ssl": "是否啟用SSL",
"alert.notice.sender.mail.enable": "啟用郵件設定",
"alert.export.switch-type": "請選擇導出文件格式!",
"alert.export.use-type": "以 {{type}} 文件格式導出阈值規則",
"dashboard.alerts.title": "最近告警列表",
"dashboard.alerts.title-no": "最近未處理告警",
"dashboard.alerts.no": "暫無未處理告警",
Expand Down

0 comments on commit 93477a5

Please sign in to comment.