More isReady

This commit is contained in:
Vincent Fiduccia 2018-03-30 16:20:26 -07:00
parent 4054bafc2f
commit 14f6ed8229
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{{#unless model.isReady}}
{{#unless model.isActive}}
{{#banner-message color='bg-error m-0'}}
<p>{{t 'clusterDashboard.notReady' state=model.displayState htmlSafe=true}}</p>
<p>{{t (if model.isReady 'clusterDashboard.notActive' 'clusterDashboard.notReady') state=model.displayState htmlSafe=true}}</p>
{{#if model.showTransitioningMessage}}
<p class="{{model.stateColor}}">{{uc-first model.transitioningMessage}}</p>
{{/if}}

View File

@ -64,7 +64,7 @@
Cluster: {{entry.cluster.displayName}}
{{/link-to}}
</li>
{{#if (eq entry.cluster.relevantState 'active')}}
{{#if entry.cluster.isReady}}
{{#each entry.projects as |p|}}
<li class="{{if (and (eq pageScope "project") p.active) 'active selected' (unless entry.active 'inactive')}} subitem text-muted">
{{#link-to 'authenticated.project' p.id class="clip project-link"}}

View File

@ -695,6 +695,7 @@ clusterDashboard:
scheduler: Scheduler
controllerManager: Controller Manager
value: Value
notActive: This cluster is currently <b>{state}</b>.
notReady: This cluster is currently <b>{state}</b>; areas that interact directly with the it will not be available until the API becomes ready to communicate with.
noNodes: There are no nodes.
alert: