diff --git a/goofy-client/libs/postfach-message-shared/src/lib/postfach-message.service.ts b/goofy-client/libs/postfach-message-shared/src/lib/postfach-message.service.ts index a5bced7c62477ff5778cae4791da88a78fd5828d..7cad3dbc5d5a03e78a52afc584359b6151846fb8 100644 --- a/goofy-client/libs/postfach-message-shared/src/lib/postfach-message.service.ts +++ b/goofy-client/libs/postfach-message-shared/src/lib/postfach-message.service.ts @@ -20,4 +20,4 @@ export class PostfachMessageService { createSendPostfachMessageCommand(postfachMessage: PostfachMessage): CreateSendPostfacheMessageCommand { return { order: PostfachOrder.SENT_POSTFACH_MESSAGE, postfachMessage } } -} \ No newline at end of file +} diff --git a/goofy-client/libs/postfach-message/src/lib/new-postfach-message-form/new-postfach-message-form.component.ts b/goofy-client/libs/postfach-message/src/lib/new-postfach-message-form/new-postfach-message-form.component.ts index 1ade9f59ef1e8ab0423cbac933fffd3514a0fa97..4a93a910b9a791270ca9e34c2152cf85d9854b03 100644 --- a/goofy-client/libs/postfach-message/src/lib/new-postfach-message-form/new-postfach-message-form.component.ts +++ b/goofy-client/libs/postfach-message/src/lib/new-postfach-message-form/new-postfach-message-form.component.ts @@ -18,6 +18,7 @@ export class NewPostfachMessageFormComponent { private formService: NewPostfachMessageFormservice ) { this.patchEmail(); + this.setVorgangInFormservice(); } get form(): FormGroup { @@ -34,7 +35,10 @@ export class NewPostfachMessageFormComponent { } submit() { - this.formService.submit() - console.log(this.formService.form) + this.formService.submit(); + } + + private setVorgangInFormservice(): void { + this.formService.setVorgang(this.injectedVorgang.vorgang); } } diff --git a/goofy-client/libs/postfach-message/src/lib/new-postfach-message-form/new-postfach-message.formservice.ts b/goofy-client/libs/postfach-message/src/lib/new-postfach-message-form/new-postfach-message.formservice.ts index 036b43c3a67305761727f7b960c94b18b4d0fe1b..0d552307440c2efeb79ef5f477c3285c9f0d9f3b 100644 --- a/goofy-client/libs/postfach-message/src/lib/new-postfach-message-form/new-postfach-message.formservice.ts +++ b/goofy-client/libs/postfach-message/src/lib/new-postfach-message-form/new-postfach-message.formservice.ts @@ -40,7 +40,6 @@ export class NewPostfachMessageFormservice extends AbstractFormService { } protected doSubmit(): Observable<StateResource<CommandResource>> { - console.log(this.getFormValue()); return this.postfachMessageService.sendMessage(this.vorgang, this.getFormValue()); }