]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Support aditional info on 'cd-view-cache' 21060/head
authorRicardo Marques <rimarques@suse.com>
Tue, 27 Mar 2018 09:14:40 +0000 (10:14 +0100)
committerRicardo Marques <rimarques@suse.com>
Tue, 27 Mar 2018 10:01:39 +0000 (11:01 +0100)
Signed-off-by: Ricardo Marques <rimarques@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/view-cache/view-cache.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/components/view-cache/view-cache.component.ts

index 1d71da24c1ab33e28bbf311280f763e5a4e7d83d..0e2ac0f88c804a51d1bd6713ad497def0dcb53eb 100644 (file)
@@ -1,17 +1,17 @@
 <alert i18n
        type="info"
        *ngIf="status === vcs.ValueNone">
-  Retrieving data, please wait.
+  Retrieving data<span *ngIf="statusFor"> for <span [innerHtml]="statusFor"></span></span>. Please wait...
 </alert>
 
 <alert i18n
        type="warning"
        *ngIf="status === vcs.ValueStale">
-  Displaying previously cached data.
+  Displaying previously cached data<span *ngIf="statusFor"> for <span [innerHtml]="statusFor"></span></span>.
 </alert>
 
 <alert i18n
        type="danger"
        *ngIf="status === vcs.ValueException">
-  Could not load data. Please check the cluster health.
+  Could not load data<span *ngIf="statusFor"> for <span [innerHtml]="statusFor"></span></span>. Please check the cluster health.
 </alert>
index 63bc97947c2f1ecbd6778fdc9701747378ebf62e..d3fb39090210141dc3f9f196f8ce37f8197c9ba6 100644 (file)
@@ -9,6 +9,7 @@ import { ViewCacheStatus } from '../../../shared/enum/view-cache-status.enum';
 })
 export class ViewCacheComponent implements OnInit {
   @Input() status: ViewCacheStatus;
+  @Input() statusFor: string;
   vcs = ViewCacheStatus;
 
   constructor() {}