From 86c420445c869c9b9b0f3302788e781f0969c4a7 Mon Sep 17 00:00:00 2001 From: Naman Munet Date: Wed, 23 Jul 2025 17:47:53 +0530 Subject: [PATCH] mgr/dashboard: add support for toast alert panel fixes: https://tracker.ceph.com/issues/72250 Signed-off-by: Naman Munet --- .../shared/components/alert-panel/alert-panel.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.ts index fa16c1dd6c58..4b47dcd97b90 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.ts @@ -38,6 +38,8 @@ export class AlertPanelComponent implements OnInit { actionName = ''; @Input() lowContrast = true; + @Input() + variant: 'toast' | 'inline' = 'inline'; /** * The event that is triggered when the close button (x) has been @@ -83,7 +85,8 @@ export class AlertPanelComponent implements OnInit { actionsTemplate: this.actionTpl, showClose: this.dismissible, title: this.showTitle ? this.title : '', - lowContrast: this.lowContrast + lowContrast: this.lowContrast, + variant: this.variant }; } -- 2.47.3