From b0171bf5a8d467838dd4d11cec3c631662439496 Mon Sep 17 00:00:00 2001
From: Albert <Albert.Bruns@mgm-tp.com>
Date: Fri, 11 Apr 2025 17:13:12 +0200
Subject: [PATCH] OZG-7773 small improvements

---
 .../postfach-mail-list-container.component.ts         | 11 ++++-------
 .../postfach-mail-list.component.html                 |  6 ++++--
 .../postfach-page/postfach-page.component.spec.ts     |  2 ++
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/alfa-client/libs/postfach/src/lib/postfach-mail-list-container/postfach-mail-list-container.component.ts b/alfa-client/libs/postfach/src/lib/postfach-mail-list-container/postfach-mail-list-container.component.ts
index e54a97d76e..14c858585f 100644
--- a/alfa-client/libs/postfach/src/lib/postfach-mail-list-container/postfach-mail-list-container.component.ts
+++ b/alfa-client/libs/postfach/src/lib/postfach-mail-list-container/postfach-mail-list-container.component.ts
@@ -25,7 +25,7 @@ import { ON_PAGE, PostfachMailListResource, PostfachService } from '@alfa-client
 import { isNotNull, StateResource } from '@alfa-client/tech-shared';
 import { VorgangWithEingangResource } from '@alfa-client/vorgang-shared';
 import { Component, Input, OnChanges } from '@angular/core';
-import { Observable, tap } from 'rxjs';
+import { Observable } from 'rxjs';
 
 @Component({
   selector: 'alfa-postfach-mail-list-container',
@@ -43,12 +43,9 @@ export class PostfachMailListContainerComponent implements OnChanges {
   ngOnChanges() {
     if (isNotNull(this.vorgangStateResource)) {
       this.reloadPostfachMailListOnVorgangReload();
-      this.postfachMailListStateResource$ = this.postfachService
-        .getPostfachMailListByGivenVorgang(this.vorgangStateResource.resource)
-        .pipe(
-          tap(console.log),
-          tap(() => console.log(this.vorgangStateResource.resource)),
-        );
+      this.postfachMailListStateResource$ = this.postfachService.getPostfachMailListByGivenVorgang(
+        this.vorgangStateResource.resource,
+      );
     }
   }
 
diff --git a/alfa-client/libs/postfach/src/lib/postfach-mail-list-container/postfach-mail-list/postfach-mail-list.component.html b/alfa-client/libs/postfach/src/lib/postfach-mail-list-container/postfach-mail-list/postfach-mail-list.component.html
index e2d1ac6825..672c5309e6 100644
--- a/alfa-client/libs/postfach/src/lib/postfach-mail-list-container/postfach-mail-list/postfach-mail-list.component.html
+++ b/alfa-client/libs/postfach/src/lib/postfach-mail-list-container/postfach-mail-list/postfach-mail-list.component.html
@@ -24,8 +24,10 @@
 
 -->
 <div class="nachrichten-header">
-  <h3 class="nachrichten">Nachrichten</h3>
-  <alfa-postfach-mail-list-mailbox-icon [hasNewPostfachNachricht]="vorgangStateResource.resource.hasNewPostfachNachricht" />
+  <div class="flex gap-2">
+    <h3 class="nachrichten">Nachrichten</h3>
+    <alfa-postfach-mail-list-mailbox-icon [hasNewPostfachNachricht]="vorgangStateResource.resource.hasNewPostfachNachricht" />
+  </div>
   <alfa-postfach-mail-pdf-button-container
     [postfachMailListResource]="postfachMailListStateResource.resource"
   ></alfa-postfach-mail-pdf-button-container>
diff --git a/alfa-client/libs/postfach/src/lib/postfach-page-container/postfach-page/postfach-page.component.spec.ts b/alfa-client/libs/postfach/src/lib/postfach-page-container/postfach-page/postfach-page.component.spec.ts
index 81e5ddd9f8..4bd24ead7a 100644
--- a/alfa-client/libs/postfach/src/lib/postfach-page-container/postfach-page/postfach-page.component.spec.ts
+++ b/alfa-client/libs/postfach/src/lib/postfach-page-container/postfach-page/postfach-page.component.spec.ts
@@ -25,6 +25,7 @@ import { BackButtonComponent, SubnavigationComponent } from '@alfa-client/ui';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { MatIcon } from '@angular/material/icon';
 import { MockComponent } from 'ng-mocks';
+import { MailUnreadButtonLinkContainerComponent } from './mail-unread-button/mail-unread-button-link-container.component';
 import { PostfachPageMailListComponent } from './postfach-page-mail-list/postfach-page-mail-list.component';
 import { PostfachPageComponent } from './postfach-page.component';
 
@@ -40,6 +41,7 @@ describe('PostfachPageComponent', () => {
         MockComponent(BackButtonComponent),
         MockComponent(SubnavigationComponent),
         MockComponent(PostfachPageMailListComponent),
+        MockComponent(MailUnreadButtonLinkContainerComponent),
       ],
     }).compileComponents();
   });
-- 
GitLab