|
|
@@ -14,20 +14,17 @@
|
|
|
<nz-divider></nz-divider>
|
|
|
|
|
|
<div>
|
|
|
+ <button nz-button nzType="primary" (click)="sync()" nz-tooltip [nzTooltipTitle]="'common.refresh' | i18n">
|
|
|
+ <i nz-icon nzType="sync" nzTheme="outline"></i>
|
|
|
+ </button>
|
|
|
<button nz-button nzType="primary">
|
|
|
<a routerLink="/monitors/new" [queryParams]="{ app: app }">
|
|
|
<i nz-icon nzType="appstore-add" nzTheme="outline"></i>
|
|
|
{{ 'monitors.new' | i18n }} {{ 'monitor.app.' + app | i18n }}
|
|
|
</a>
|
|
|
</button>
|
|
|
- <button nz-button nzType="primary" (click)="onEditMonitor()">
|
|
|
- <i nz-icon nzType="edit" nzTheme="outline"></i>
|
|
|
- {{ 'monitors.edit' | i18n }}
|
|
|
- </button>
|
|
|
- <button nz-button nzType="primary" (click)="onDeleteMonitors()">
|
|
|
- <i nz-icon nzType="delete" nzTheme="outline"></i>
|
|
|
- {{ 'monitors.delete' | i18n }}
|
|
|
- </button>
|
|
|
+
|
|
|
+
|
|
|
<button nz-button nzType="primary" (click)="onEnableManageMonitors()">
|
|
|
<i nz-icon nzType="up-circle" nzTheme="outline"></i>
|
|
|
{{ 'monitors.enable' | i18n }}
|
|
|
@@ -36,8 +33,9 @@
|
|
|
<i nz-icon nzType="down-circle" nzTheme="outline"></i>
|
|
|
{{ 'monitors.cancel' | i18n }}
|
|
|
</button>
|
|
|
- <button nz-button nzType="primary" (click)="sync()" nz-tooltip [nzTooltipTitle]="'common.refresh' | i18n">
|
|
|
- <i nz-icon nzType="sync" nzTheme="outline"></i>
|
|
|
+ <button nz-button nzType="primary" nzDanger (click)="onDeleteMonitors()">
|
|
|
+ <i nz-icon nzType="delete" nzTheme="outline"></i>
|
|
|
+ {{ 'monitors.delete' | i18n }}
|
|
|
</button>
|
|
|
|
|
|
<button style="margin-right: 25px; float: right" nz-button nzType="primary" (click)="onFilterSearchMonitors()">
|
|
|
@@ -133,15 +131,6 @@
|
|
|
<button
|
|
|
nz-button
|
|
|
nzType="primary"
|
|
|
- (click)="onDeleteOneMonitor(data.id)"
|
|
|
- nz-tooltip
|
|
|
- [nzTooltipTitle]="'monitors.delete-monitor' | i18n"
|
|
|
- >
|
|
|
- <i nz-icon nzType="delete" nzTheme="outline"></i>
|
|
|
- </button>
|
|
|
- <button
|
|
|
- nz-button
|
|
|
- nzType="primary"
|
|
|
(click)="onEnableManageOneMonitor(data.id)"
|
|
|
nz-tooltip
|
|
|
[nzTooltipTitle]="'monitors.enable' | i18n"
|
|
|
@@ -157,6 +146,16 @@
|
|
|
>
|
|
|
<i nz-icon nzType="down-circle" nzTheme="outline"></i>
|
|
|
</button>
|
|
|
+ <button
|
|
|
+ nz-button
|
|
|
+ nzDanger
|
|
|
+ nzType="primary"
|
|
|
+ (click)="onDeleteOneMonitor(data.id)"
|
|
|
+ nz-tooltip
|
|
|
+ [nzTooltipTitle]="'monitors.delete-monitor' | i18n"
|
|
|
+ >
|
|
|
+ <i nz-icon nzType="delete" nzTheme="outline"></i>
|
|
|
+ </button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|