Skip to content
Snippets Groups Projects
Commit 5af200ad authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'OZG-7006 fix hide form handling' (#831) from...

Merge pull request 'OZG-7006 fix hide form handling' (#831) from OZG-7006-fix-collaboration-level into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/alfa/pulls/831


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents 139c2abc 347633e6
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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();
......
......@@ -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();
......
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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment