From: Naman Munet Date: Wed, 23 Jul 2025 12:17:53 +0000 (+0530) Subject: mgr/dashboard: add support for toast alert panel X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F64638%2Fhead;p=ceph.git mgr/dashboard: add support for toast alert panel fixes: https://tracker.ceph.com/issues/72250 Signed-off-by: Naman Munet --- 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 }; }