]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: add success type to alert panel component
authorPatrick Seidensal <pseidensal@suse.com>
Fri, 13 Sep 2019 11:13:26 +0000 (13:13 +0200)
committerPatrick Seidensal <pseidensal@suse.com>
Mon, 23 Sep 2019 13:55:24 +0000 (15:55 +0200)
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.ts

index 48324e190696c36a8b74de063fed7a8000ec8290..90ce8c361e08f0461421b6db740bf9bb824a96e6 100644 (file)
@@ -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;
     }
   }
 }