diff --git a/ui/packages/consul-ui/app/models/topology.js b/ui/packages/consul-ui/app/models/topology.js index 9df21523ecd9..feb384db624e 100644 --- a/ui/packages/consul-ui/app/models/topology.js +++ b/ui/packages/consul-ui/app/models/topology.js @@ -20,7 +20,7 @@ export default class Topology extends Model { @attr() meta; // {} @computed('Downstreams') - get undefinedIntention() { + get notDefinedIntention() { let undefinedDownstream = false; undefinedDownstream = @@ -32,11 +32,11 @@ export default class Topology extends Model { return undefinedDownstream; } - @computed('FilteredByACL', 'DefaultAllow', 'WildcardIntention', 'undefinedIntention') + @computed('FilteredByACL', 'DefaultAllow', 'WildcardIntention', 'notDefinedIntention') get collapsible() { - if (this.DefaultAllow && this.FilteredByACLs && this.undefinedIntention) { + if (this.DefaultAllow && this.FilteredByACLs && this.notDefinedIntention) { return true; - } else if (this.WildcardIntention && this.FilteredByACLs && this.undefinedIntention) { + } else if (this.WildcardIntention && this.FilteredByACLs && this.notDefinedIntention) { return true; } diff --git a/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs b/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs index 26c90cef99cb..5e79ae519aa7 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs @@ -50,9 +50,9 @@ as |route|> @action={{true}} /> {{/if}} - {{#if topology.undefinedIntention}} + {{#if topology.notDefinedIntention}} @action={{true}} /> {{/if}} - {{#if topology.undefinedIntention}} + {{#if topology.notDefinedIntention}}