Skip to content

Commit 057af08

Browse files
xingzhang-suserushk014
authored andcommitted
NVSHAS-9941: [Registries page][Details][Filter] It still shows filtered result even Filter is empty
1 parent 2b4d721 commit 057af08

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

admin/webapp/websrc/app/routes/registries/registry-details/registry-details-table/registry-details-dialog/registry-details-dialog.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Component,
55
Inject,
66
OnInit,
7+
OnDestroy,
78
ViewChild,
89
} from '@angular/core';
910
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
@@ -39,7 +40,7 @@ export interface RegistryDetailsDialogData {
3940
styleUrls: ['./registry-details-dialog.component.scss'],
4041
changeDetection: ChangeDetectionStrategy.OnPush,
4142
})
42-
export class RegistryDetailsDialogComponent implements OnInit {
43+
export class RegistryDetailsDialogComponent implements OnInit, OnDestroy {
4344
acceptedVulnerabilityStatus = false;
4445
resize = true;
4546
refreshing = false;
@@ -179,4 +180,9 @@ export class RegistryDetailsDialogComponent implements OnInit {
179180
this.selectedRemediation = data;
180181
this.remediationDetails.show();
181182
}
183+
184+
ngOnDestroy() {
185+
this.filter.setValue('');
186+
}
187+
182188
}

0 commit comments

Comments
 (0)