ui: Only show optimistic details in Ent (#12788)

This commit is contained in:
John Cowen 2022-04-14 16:58:19 +01:00 committed by GitHub
parent 769d1d6e8e
commit 7c74885180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -22,7 +22,7 @@ section[data-route='dc.show.serverstatus'] {
@extend %panel; @extend %panel;
box-shadow: var(--decor-elevation-000); box-shadow: var(--decor-elevation-000);
padding: var(--padding-y) var(--padding-x); padding: var(--padding-y) var(--padding-x);
width: 770px; max-width: 770px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }

View File

@ -119,6 +119,7 @@ as |item|}}
</dl> </dl>
</section> </section>
{{#if (can 'read zones')}}
<section <section
class={{class-map class={{class-map
(array 'optimistic-tolerance') (array 'optimistic-tolerance')
@ -127,11 +128,6 @@ as |item|}}
<header> <header>
<h3> <h3>
{{compute (fn route.t 'tolerance.optimistic.header')}} {{compute (fn route.t 'tolerance.optimistic.header')}}
{{#if (not (can 'read zones'))}}
<em>
{{t 'common.ui.enterprisefeature'}}
</em>
{{/if}}
<span <span
{{tooltip 'With > 30 seconds between server failures, Consul can restore the Immediate Fault Tolerance by replacing failed active voters with healthy back-up voters when using redundancy zones.'}} {{tooltip 'With > 30 seconds between server failures, Consul can restore the Immediate Fault Tolerance by replacing failed active voters with healthy back-up voters when using redundancy zones.'}}
> >
@ -152,7 +148,7 @@ as |item|}}
</dl> </dl>
</section> </section>
{{/if}}
</section> </section>
{{#if (gt item.RedundancyZones.length 0)}} {{#if (gt item.RedundancyZones.length 0)}}