Skip to content
Snippets Groups Projects
Commit 9f430a9c authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'OZG-5269 Fix injection of services' (#490) from...

Merge pull request 'OZG-5269 Fix injection of services' (#490) from OZG-5269-Fix-Postfach-Dialog into master

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


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents e992e3b9 fea5bfe0
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ import * as BinaryFileActions from '@alfa-client/binary-file-shared';
import * as PostfachActions from './postfach.actions';
import * as PostfachSelectors from './postfach.selectors';
@Injectable()
@Injectable({ providedIn: 'root' })
export class PostfachFacade {
constructor(private readonly store: Store) {}
......
......@@ -27,9 +27,7 @@ import { NgModule } from '@angular/core';
import { EffectsModule } from '@ngrx/effects';
import { StoreModule } from '@ngrx/store';
import { PostfachEffects } from './+state/postfach.effects';
import { PostfachFacade } from './+state/postfach.facade';
import * as fromPostfach from './+state/postfach.reducer';
import { PostfachService } from './postfach.service';
@NgModule({
imports: [
......@@ -38,6 +36,5 @@ import { PostfachService } from './postfach.service';
StoreModule.forFeature(fromPostfach.POSTFACH_FEATURE_KEY, fromPostfach.postfachReducer),
EffectsModule.forFeature([PostfachEffects]),
],
providers: [PostfachFacade, PostfachService],
})
export class PostfachSharedModule {}
......@@ -66,7 +66,7 @@ import {
import { PostfachRepository } from './postfach.repository';
import { createResendPostfachMailCommand, createSendPostfachMailCommand } from './postfach.util';
@Injectable()
@Injectable({ providedIn: 'root' })
export class PostfachService {
private readonly isPollSendPostachMail: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(
false,
......
......@@ -21,12 +21,12 @@
* Die sprachspezifischen Genehmigungen und Beschränkungen
* unter der Lizenz sind dem Lizenztext zu entnehmen.
*/
import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { CommandResource } from '@alfa-client/command-shared';
import { PostfachMailFormDialogData } from '@alfa-client/postfach-shared';
import { StateResource, createEmptyStateResource, isNotNil } from '@alfa-client/tech-shared';
import { DialogService } from '@alfa-client/ui';
import { PostfachMailFormDialogData } from 'libs/postfach-shared/src/lib/postfach.model';
import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Observable, of, tap } from 'rxjs';
import { PostfachMailFormservice } from './postfach-mail.formservice';
......
import { Component, Input } from '@angular/core';
import { PostfachMailFormDialogData, PostfachMailResource } from '@alfa-client/postfach-shared';
import { EMPTY_STRING, StateResource, isNotNil } from '@alfa-client/tech-shared';
import { DialogService } from '@alfa-client/ui';
import { Antragsteller, VorgangWithEingang } from '@alfa-client/vorgang-shared';
import { PostfachMailFormComponent } from 'libs/postfach/src/lib/postfach-mail-form/postfach-mail-form.component';
import { Component, Input } from '@angular/core';
import { PostfachMailFormComponent } from '../../../../../postfach-mail-form/postfach-mail-form.component';
@Component({
selector: 'alfa-postfach-nachricht-edit-button-container',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment