diff --git a/src-ui/src/app/components/app-frame/toasts-dropdown/toasts-dropdown.component.ts b/src-ui/src/app/components/app-frame/toasts-dropdown/toasts-dropdown.component.ts index 7274f2b53..c19364744 100644 --- a/src-ui/src/app/components/app-frame/toasts-dropdown/toasts-dropdown.component.ts +++ b/src-ui/src/app/components/app-frame/toasts-dropdown/toasts-dropdown.component.ts @@ -1,4 +1,4 @@ -import { Component, OnDestroy, OnInit, inject } from '@angular/core' +import { Component, OnDestroy, OnInit, inject, signal } from '@angular/core' import { NgbDropdownModule, NgbProgressbarModule, @@ -24,7 +24,15 @@ export class ToastsDropdownComponent implements OnInit, OnDestroy { private subscription: Subscription - public toasts: Toast[] = [] + private toastsSignal = signal([]) + + public get toasts(): Toast[] { + return this.toastsSignal() + } + + public set toasts(toasts: Toast[]) { + this.toastsSignal.set(toasts) + } ngOnDestroy(): void { this.subscription?.unsubscribe()