Skip to content

Commit

Permalink
Apply connected fix to marketplace wall as well
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Jun 29, 2018
1 parent fc26ba6 commit 31221f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ import { Component } from '@angular/core';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';

import { ListDataSource } from '../../../shared/components/list/data-sources-controllers/list-data-source';
import {
CfServicesListConfigService,
} from '../../../shared/components/list/list-types/cf-services/cf-services-list-config.service';
import { ListConfig } from '../../../shared/components/list/list.component.types';
import { CloudFoundryService } from '../../../shared/data-services/cloud-foundry.service';
import { APIResource } from '../../../store/types/api.types';
import { getActiveRouteCfOrgSpaceProvider } from '../../cloud-foundry/cf.helpers';

@Component({
Expand All @@ -29,7 +27,10 @@ export class ServiceCatalogPageComponent {

constructor(public cloudFoundryService: CloudFoundryService) {
this.cfIds$ = cloudFoundryService.cFEndpoints$.pipe(
map(endpoints => endpoints.map(endpoint => endpoint.guid))
map(endpoints => endpoints
.filter(endpoint => endpoint.connectionStatus === 'connected')
.map(endpoint => endpoint.guid)
)
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { CfOrgSpaceDataService, initCfOrgSpaceService } from '../../../shared/da
import { CloudFoundryService } from '../../../shared/data-services/cloud-foundry.service';
import { AppState } from '../../../store/app-state';
import { serviceInstancesSchemaKey } from '../../../store/helpers/entity-factory';
import { endpointsRegisteredCFEntitiesSelector } from '../../../store/selectors/endpoint.selectors';

@Component({
selector: 'app-services-wall',
Expand Down

0 comments on commit 31221f6

Please sign in to comment.