From: Patrick Seidensal Date: Fri, 13 Sep 2019 11:13:26 +0000 (+0200) Subject: mgr/dashboard: add success type to alert panel component X-Git-Tag: v15.1.0~1350^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e81e65f8a2b532a6fe5a25e7c6da0ff03838bec8;p=ceph.git mgr/dashboard: add success type to alert panel component Signed-off-by: Patrick Seidensal --- 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 48324e190696..90ce8c361e08 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; } } }