diff --git a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.spec.ts b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.spec.ts index e2b56d42d..d87200987 100644 --- a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.spec.ts +++ b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.spec.ts @@ -78,7 +78,6 @@ describe('DownloadReportZipComponent', () => { expect(openSpy).toHaveBeenCalledWith(DownloadZipModalComponent, { ariaLabel: 'Download zip', data: { - hasProfiles: false, profiles: [], }, autoFocus: true, @@ -105,7 +104,6 @@ describe('DownloadReportZipComponent', () => { expect(openSpy).toHaveBeenCalledWith(DownloadZipModalComponent, { ariaLabel: 'Download zip', data: { - hasProfiles: false, profiles: [], }, autoFocus: true, @@ -131,7 +129,6 @@ describe('DownloadReportZipComponent', () => { expect(openSpy).toHaveBeenCalledWith(DownloadZipModalComponent, { ariaLabel: 'Download zip', data: { - hasProfiles: false, profiles: [], }, autoFocus: true, diff --git a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts index 5511e3174..e7b106f05 100644 --- a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts +++ b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts @@ -47,7 +47,6 @@ export class DownloadReportZipComponent implements OnDestroy, OnInit { private destroy$: Subject = new Subject(); - @Input() hasProfiles: boolean = false; @Input() profiles: Profile[] = []; @Input() url: string | null | undefined = null; @@ -61,7 +60,6 @@ export class DownloadReportZipComponent const dialogRef = this.dialog.open(DownloadZipModalComponent, { ariaLabel: 'Download zip', data: { - hasProfiles: this.hasProfiles, profiles: this.profiles, }, autoFocus: true, diff --git a/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html b/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html index 4af4e9679..b3dfb77f4 100644 --- a/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html +++ b/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html @@ -19,7 +19,7 @@ Risk assessment profile for your ZIP report.

-
+
diff --git a/modules/ui/src/app/pages/testrun/testrun.component.spec.ts b/modules/ui/src/app/pages/testrun/testrun.component.spec.ts index 431895b16..98d1b986f 100644 --- a/modules/ui/src/app/pages/testrun/testrun.component.spec.ts +++ b/modules/ui/src/app/pages/testrun/testrun.component.spec.ts @@ -571,6 +571,5 @@ class FakeProgressTableComponent { }) class FakeDownloadOptionsComponent { @Input() data!: TestrunStatus; - @Input() hasProfiles!: boolean; @Input() profiles!: Profile[]; } diff --git a/modules/ui/src/app/pages/testrun/testrun.store.spec.ts b/modules/ui/src/app/pages/testrun/testrun.store.spec.ts index 2143c4874..03f7817af 100644 --- a/modules/ui/src/app/pages/testrun/testrun.store.spec.ts +++ b/modules/ui/src/app/pages/testrun/testrun.store.spec.ts @@ -20,7 +20,6 @@ import { skip, take } from 'rxjs'; import { selectHasConnectionSettings, selectHasDevices, - selectHasRiskProfiles, selectIsOpenStartTestrun, selectRiskProfiles, selectSystemStatus, @@ -66,7 +65,6 @@ describe('TestrunStore', () => { { selector: selectSystemStatus, value: null }, { selector: selectHasConnectionSettings, value: true }, { selector: selectIsOpenStartTestrun, value: false }, - { selector: selectHasRiskProfiles, value: false }, { selector: selectRiskProfiles, value: [] }, ], }), @@ -90,7 +88,6 @@ describe('TestrunStore', () => { systemStatus: null, dataSource: [], stepsToResolveCount: 0, - hasProfiles: false, profiles: [], }); done(); diff --git a/modules/ui/src/app/pages/testrun/testrun.store.ts b/modules/ui/src/app/pages/testrun/testrun.store.ts index 5ae65808d..eacad9959 100644 --- a/modules/ui/src/app/pages/testrun/testrun.store.ts +++ b/modules/ui/src/app/pages/testrun/testrun.store.ts @@ -21,7 +21,6 @@ import { AppState } from '../../store/state'; import { Store } from '@ngrx/store'; import { selectHasDevices, - selectHasRiskProfiles, selectIsOpenStartTestrun, selectRiskProfiles, selectSystemStatus, @@ -58,7 +57,6 @@ export class TestrunStore extends ComponentStore { ); private hasDevices$ = this.store.select(selectHasDevices); private profiles$ = this.store.select(selectRiskProfiles); - private hasProfiles$ = this.store.select(selectHasRiskProfiles); private systemStatus$ = this.store.select(selectSystemStatus); isOpenStartTestrun$ = this.store.select(selectIsOpenStartTestrun); viewModel$ = this.select({ @@ -66,7 +64,6 @@ export class TestrunStore extends ComponentStore { systemStatus: this.systemStatus$, dataSource: this.dataSource$, stepsToResolveCount: this.stepsToResolveCount$, - hasProfiles: this.hasProfiles$, profiles: this.profiles$, });