Skip to content

Commit 86c4204

Browse files
author
Naman Munet
committed
mgr/dashboard: add support for toast alert panel
fixes: https://tracker.ceph.com/issues/72250 Signed-off-by: Naman Munet <[email protected]>
1 parent b352f56 commit 86c4204

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export class AlertPanelComponent implements OnInit {
3838
actionName = '';
3939
@Input()
4040
lowContrast = true;
41+
@Input()
42+
variant: 'toast' | 'inline' = 'inline';
4143

4244
/**
4345
* The event that is triggered when the close button (x) has been
@@ -83,7 +85,8 @@ export class AlertPanelComponent implements OnInit {
8385
actionsTemplate: this.actionTpl,
8486
showClose: this.dismissible,
8587
title: this.showTitle ? this.title : '',
86-
lowContrast: this.lowContrast
88+
lowContrast: this.lowContrast,
89+
variant: this.variant
8790
};
8891
}
8992

0 commit comments

Comments
 (0)