Skip to content

Commit deecbdd

Browse files
fix(alert-management): added false positive tag on update alert status
1 parent ade9bc8 commit deecbdd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/src/app/data-management/alert-management/shared/services/alert-management.service.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {Injectable} from '@angular/core';
33
import {Observable} from 'rxjs';
44
import {SERVER_API_URL} from '../../../../app.constants';
55
import {QueryType} from '../../../../shared/types/query-type';
6+
import {AlertStatusEnum} from 'src/app/shared/types/alert/utm-alert.type'
67

78

89
@Injectable({
@@ -16,11 +17,16 @@ export class AlertManagementService {
1617
}
1718

1819
updateAlertStatus(alertId: string[], status: number, statusObservation: string = ''): Observable<HttpResponse<any>> {
19-
const req = {
20+
21+
const req:any = {
2022
alertIds: alertId,
2123
status,
2224
statusObservation
2325
};
26+
27+
if(status == AlertStatusEnum.COMPLETED){
28+
req['addFalsePositiveTag']=true;
29+
}
2430
return this.http.post<HttpResponse<any>>(this.resourceUrl + '/status', req, {observe: 'response'});
2531
}
2632

0 commit comments

Comments
 (0)