Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4282 from cloudfoundry/metrics-details-fix
Browse files Browse the repository at this point in the history
Only show metrics details on endpoint card/list when connected
  • Loading branch information
richard-cox committed May 13, 2020
2 parents d637c3f + ea6b0cd commit 2be2a2a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class MetricsEndpointDetailsComponent extends EndpointListDetailsComponen
).pipe(
map(([endpoints, guid]) => endpoints.find((item) => item.provider.guid === guid)),
filter(provider => !!provider),
filter(data => data.provider.connectionStatus === 'connected'),
tap(data => {
if (!this.hasStratosData(data)) {
this.store.dispatch(new MetricsStratosAction(data.provider.guid));
Expand Down

0 comments on commit 2be2a2a

Please sign in to comment.