]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: add support for toast alert panel 64638/head
authorNaman Munet <naman.munet@ibm.com>
Wed, 23 Jul 2025 12:17:53 +0000 (17:47 +0530)
committerNaman Munet <naman.munet@ibm.com>
Thu, 24 Jul 2025 05:37:43 +0000 (11:07 +0530)
fixes: https://tracker.ceph.com/issues/72250

Signed-off-by: Naman Munet <naman.munet@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.ts

index fa16c1dd6c5855023424f183e6d186c1aa83906d..4b47dcd97b9023daac83adfd9d26fa082061a4e3 100644 (file)
@@ -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
     };
   }