diff --git a/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/externe-fachstelle-container/externe-fachstelle-container.component.spec.ts b/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/externe-fachstelle-container/externe-fachstelle-container.component.spec.ts index 2770d0fb9d618c8e139b9cf4131ec33c9667869c..51f7b9f39c2a513bba610db9e81113a53411dfd4 100644 --- a/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/externe-fachstelle-container/externe-fachstelle-container.component.spec.ts +++ b/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/externe-fachstelle-container/externe-fachstelle-container.component.spec.ts @@ -92,16 +92,6 @@ describe('ExterneFachstelleContainerComponent', () => { }); }); - describe('ngOnDestroy', () => { - it('should call hideForm', () => { - component.hideForm = jest.fn(); - - component.ngOnDestroy(); - - expect(component.hideForm).toHaveBeenCalled(); - }); - }); - describe('hideForm', () => { it('should call service to hide form', () => { component.hideForm(); diff --git a/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/externe-fachstelle-container/externe-fachstelle-container.component.ts b/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/externe-fachstelle-container/externe-fachstelle-container.component.ts index 025455d739cbe39f5ac2fa96aa751eb73042c31a..7142d51e93dc900e0990d2c343aae66389b4e516 100644 --- a/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/externe-fachstelle-container/externe-fachstelle-container.component.ts +++ b/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/externe-fachstelle-container/externe-fachstelle-container.component.ts @@ -27,10 +27,6 @@ export class ExterneFachstelleContainerComponent { this.isFormVisible$ = this.service.isExterneFachstelleFormVisible(); } - ngOnDestroy(): void { - this.hideForm(); - } - public hideForm(): void { this.service.hideExterneFachstelleForm(); this.formService.reset(); diff --git a/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/organisations-einheit-container/organisations-einheit-container.component.spec.ts b/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/organisations-einheit-container/organisations-einheit-container.component.spec.ts index db074ea7b2b912cf078df24749c72831b6935ba7..6184b6fdb3a36d7404160df9ce3005e9bc42eea6 100644 --- a/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/organisations-einheit-container/organisations-einheit-container.component.spec.ts +++ b/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/organisations-einheit-container/organisations-einheit-container.component.spec.ts @@ -92,16 +92,6 @@ describe('OrganisationsEinheitContainerComponent', () => { }); }); - describe('ngOnDestroy', () => { - it('should call hideForm', () => { - component.hideForm = jest.fn(); - - component.ngOnDestroy(); - - expect(component.hideForm).toHaveBeenCalled(); - }); - }); - describe('hideForm', () => { it('should call service to hide form', () => { component.hideForm(); diff --git a/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/organisations-einheit-container/organisations-einheit-container.component.ts b/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/organisations-einheit-container/organisations-einheit-container.component.ts index 4a76dd254321135bd414b66efc13e5c80f276574..5f37c98675989f56a1d8219db29f55edf90681b3 100644 --- a/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/organisations-einheit-container/organisations-einheit-container.component.ts +++ b/alfa-client/libs/collaboration/src/lib/collaboration-in-vorgang-container/collaboration-in-vorgang/organisations-einheit-container/organisations-einheit-container.component.ts @@ -1,6 +1,6 @@ import { CollaborationListResource } from '@alfa-client/collaboration-shared'; import { VorgangWithEingangLinkRel, VorgangWithEingangResource } from '@alfa-client/vorgang-shared'; -import { Component, Input, OnDestroy, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { CollaborationService } from 'libs/collaboration-shared/src/lib/collaboration.service'; import { Observable } from 'rxjs'; import { CollaborationRequestFormService } from '../../collaboration-request-form/collaboration.request.formservice'; @@ -10,7 +10,7 @@ import { CollaborationRequestFormService } from '../../collaboration-request-for templateUrl: './organisations-einheit-container.component.html', providers: [CollaborationRequestFormService], }) -export class OrganisationsEinheitContainerComponent implements OnInit, OnDestroy { +export class OrganisationsEinheitContainerComponent implements OnInit { @Input() public vorgang: VorgangWithEingangResource; @Input() public collaborationListResource: CollaborationListResource; @@ -27,10 +27,6 @@ export class OrganisationsEinheitContainerComponent implements OnInit, OnDestroy this.isFormVisible$ = this.service.isOrganisationsEinheitFormVisible(); } - ngOnDestroy(): void { - this.hideForm(); - } - public hideForm(): void { this.service.hideOrganisationseinheitForm(); this.formService.reset();