From 85c1018cee9c3afd32e1be3cdc4a820146a53f19 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Mon, 9 Jul 2018 12:58:58 -0700 Subject: [PATCH] SHIBUI-574 Added providers$ observable to dashboard list page --- .../container/dashboard-providers-list.component.html | 2 ++ .../container/dashboard-providers-list.component.ts | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/ui/src/app/metadata/manager/container/dashboard-providers-list.component.html b/ui/src/app/metadata/manager/container/dashboard-providers-list.component.html index f429f1e6c..455706a97 100644 --- a/ui/src/app/metadata/manager/container/dashboard-providers-list.component.html +++ b/ui/src/app/metadata/manager/container/dashboard-providers-list.component.html @@ -1 +1,3 @@ Metadata providers + +
{{ providers$ | async | json }}
\ No newline at end of file diff --git a/ui/src/app/metadata/manager/container/dashboard-providers-list.component.ts b/ui/src/app/metadata/manager/container/dashboard-providers-list.component.ts index 7e8b4daaf..fd43e20c6 100644 --- a/ui/src/app/metadata/manager/container/dashboard-providers-list.component.ts +++ b/ui/src/app/metadata/manager/container/dashboard-providers-list.component.ts @@ -1,4 +1,8 @@ import { Component } from '@angular/core'; +import { MetadataProvider } from '../../domain/model'; +import { Observable } from '../../../../../node_modules/rxjs'; +import { Store } from '@ngrx/store'; +import { ProviderState, getAllProviders } from '../../provider/reducer'; @Component({ selector: 'dashboard-providers-list', @@ -7,4 +11,11 @@ import { Component } from '@angular/core'; export class DashboardProvidersListComponent { + providers$: Observable; + + constructor( + private store: Store + ) { + this.providers$ = this.store.select(getAllProviders); + } }