Skip to content

Commit ea9fa12

Browse files
authored
Merge pull request ceph#64638 from rhcs-dashboard/alert-panel-variant
mgr/dashboard: alert panel enhancements Reviewed-by: Nizamudeen A <[email protected]> Reviewed-by: Aashish Sharma <[email protected]>
2 parents e8977b3 + 86c4204 commit ea9fa12

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)