]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: allow hiding title in alert components
authorKiefer Chang <kiefer.chang@suse.com>
Tue, 3 Mar 2020 12:01:44 +0000 (20:01 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Tue, 3 Mar 2020 14:25:51 +0000 (22:25 +0800)
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/components/alert-panel/alert-panel.component.ts

index 8fbc05ed1a2b5478721bddd7e277fc5a7df68534..2b606ccdec673abd1a57569d532f8f1655ed32b6 100644 (file)
@@ -9,7 +9,8 @@
              class="alert-{{ bootstrapClass }} {{ typeIcon }}"
              aria-hidden="true"></i>
         </td>
-        <td class="alert-panel-title">{{ title }}</td>
+        <td *ngIf="showTitle"
+            class="alert-panel-title">{{ title }}</td>
       </tr>
       <tr>
         <td class="alert-panel-text">
@@ -24,7 +25,8 @@
           <i class="alert-{{ bootstrapClass }} {{ typeIcon }}"
              aria-hidden="true"></i>
         </td>
-        <td class="alert-panel-title">{{ title }}</td>
+        <td *ngIf="showTitle"
+            class="alert-panel-title">{{ title }}</td>
         <td class="alert-panel-text">
           <ng-container *ngTemplateOutlet="content"></ng-container>
         </td>
index 12b2a83237619230189b494e575cdbf0459d43ab..5798d24df11a37671bcfa85b3935b696345d0ec8 100644 (file)
@@ -22,6 +22,8 @@ export class AlertPanelComponent implements OnInit {
   size: 'slim' | 'normal' = 'normal';
   @Input()
   showIcon = true;
+  @Input()
+  showTitle = true;
 
   icons = Icons;