From 51c7ecc6890d95b215b7974a6181bcfdfc81e26a Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 8 Jul 2026 08:16:39 -0700 Subject: [PATCH] Toasts dropdown --- .../toasts-dropdown/toasts-dropdown.component.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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()