|
|
|
@ -236,7 +236,7 @@ export class ConditionMonitoringComponent implements OnInit {
|
|
|
|
|
port: instance.validateForm.value.port, |
|
|
|
|
maxRetries: instance.validateForm.value.maxRetries |
|
|
|
|
} |
|
|
|
|
await new Promise(resolve => { |
|
|
|
|
await new Promise((resolve, reject) => { |
|
|
|
|
this.loading = 'file' |
|
|
|
|
this.http.patch('/api/EdgeDevices/Commands/PushMonitorSettingsJson', body).subscribe({ |
|
|
|
|
next: (data: any) => { |
|
|
|
@ -249,11 +249,13 @@ export class ConditionMonitoringComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
this.setOfCheckedId.clear(); |
|
|
|
|
this.refreshCheckedStatus(); |
|
|
|
|
|
|
|
|
|
this.getConditionMonitoring() |
|
|
|
|
this.loading = null; |
|
|
|
|
resolve(data) |
|
|
|
|
return true |
|
|
|
|
}, |
|
|
|
|
error: (err) => { |
|
|
|
|
reject(err) |
|
|
|
|
this.loading = null; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|