From e81e65f8a2b532a6fe5a25e7c6da0ff03838bec8 Mon Sep 17 00:00:00 2001 From: Patrick Seidensal Date: Fri, 13 Sep 2019 13:13:26 +0200 Subject: [PATCH] mgr/dashboard: add success type to alert panel component Signed-off-by: Patrick Seidensal --- .../shared/components/alert-panel/alert-panel.component.ts | 5 +++++ 1 file changed, 5 insertions(+) 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 48324e19069..90ce8c361e0 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 @@ -41,6 +41,11 @@ export class AlertPanelComponent implements OnInit { this.typeIcon = this.typeIcon || Icons.infoCircle; this.bootstrapClass = this.bootstrapClass || 'info'; break; + case 'success': + this.title = this.title || this.i18n('Success'); + this.typeIcon = this.typeIcon || Icons.check; + this.bootstrapClass = this.bootstrapClass || 'success'; + break; } } } -- 2.39.5