-
-
+
diff --git a/frontend/src/app/general/notice/notice.component.ts b/frontend/src/app/general/notice/notice.component.ts
index cccd1e54d7..12924ae0f9 100644
--- a/frontend/src/app/general/notice/notice.component.ts
+++ b/frontend/src/app/general/notice/notice.component.ts
@@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
-import { NgFor } from '@angular/common';
+import { NgClass, NgFor } from '@angular/common';
import { Component, ViewEncapsulation } from '@angular/core';
import { NoticeService } from '../../services/notice/notice.service';
@@ -12,7 +12,7 @@ import { NoticeService } from '../../services/notice/notice.service';
styleUrls: ['./notice.component.css'],
encapsulation: ViewEncapsulation.None,
standalone: true,
- imports: [NgFor],
+ imports: [NgFor, NgClass],
})
export class NoticeComponent {
constructor(public noticeService: NoticeService) {}
diff --git a/frontend/src/app/services/notice/notice.service.ts b/frontend/src/app/services/notice/notice.service.ts
index 81eca49756..35c05a5ada 100644
--- a/frontend/src/app/services/notice/notice.service.ts
+++ b/frontend/src/app/services/notice/notice.service.ts
@@ -12,6 +12,7 @@ import { environment } from 'src/environments/environment';
})
export class NoticeService {
notices: Notice[] = [];
+ hasLoaded = false;
noticeLevels = [
'primary',
'secondary',
@@ -29,6 +30,7 @@ export class NoticeService {
refreshNotices(): void {
this.getNotices().subscribe((res) => {
this.notices = res;
+ this.hasLoaded = true;
});
}