Skip to content

Commit

Permalink
Merged in bugfix/nojira-base-resolver (pull request #125)
Browse files Browse the repository at this point in the history
NOJIRA: Removed incommonmd from dashboard

Approved-by: Shibui Jenkins <shibui.jenkins@gmail.com>
Approved-by: Ryan Mathis <rmathis@unicon.net>
  • Loading branch information
rmathis committed Jul 24, 2018
1 parent 8d5e842 commit b12d7b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Store } from '@ngrx/store';
import { ProviderState, getAllProviders } from '../../provider/reducer';
import * as fromDashboard from '../reducer';
import { ToggleEntityDisplay } from '../action/manager.action';
import { Meta } from '../../../../../node_modules/@angular/platform-browser';
import { map } from 'rxjs/operators';

@Component({
selector: 'dashboard-providers-list',
Expand All @@ -23,7 +23,9 @@ export class DashboardProvidersListComponent {
private store: Store<ProviderState>,
private router: Router
) {
this.providers$ = this.store.select(getAllProviders);
this.providers$ = this.store.select(getAllProviders).pipe(
map(providers => providers.filter(p => p['@type'] !== 'BaseMetadataResolver'))
);
this.providersOpen$ = store.select(fromDashboard.getOpenProviders);
}

Expand Down
3 changes: 3 additions & 0 deletions ui/src/app/metadata/manager/reducer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { createSelector, createFeatureSelector } from '@ngrx/store';
import * as fromRoot from '../../../core/reducer';
import * as fromDashboard from './manager.reducer';
import * as fromSearch from './search.reducer';
import { MetadataEntity } from '../../domain/model';
import { Metadata } from '../../domain/domain.type';

export interface DashboardState {
manager: fromDashboard.State;
Expand Down Expand Up @@ -29,6 +31,7 @@ export const getSearchResults = createSelector(
getSearchState,
fromSearch.getEntities
);

export const getSearchQuery = createSelector(
getSearchState,
fromSearch.getQuery
Expand Down

0 comments on commit b12d7b7

Please sign in to comment.