diff --git a/ui/src/app/admin/admin.component.ts b/ui/src/app/admin/admin.component.ts
index e4944bad5..fa51290b0 100644
--- a/ui/src/app/admin/admin.component.ts
+++ b/ui/src/app/admin/admin.component.ts
@@ -16,6 +16,6 @@ export class AdminComponent implements OnInit {
) { }
ngOnInit(): void {
- this.store.dispatch(new LoadAdminRequest());
+ // this.store.dispatch(new LoadAdminRequest());
}
}
diff --git a/ui/src/app/admin/component/enable-metadata.component.html b/ui/src/app/admin/component/enable-metadata.component.html
index 2346caa2e..6ab978649 100644
--- a/ui/src/app/admin/component/enable-metadata.component.html
+++ b/ui/src/app/admin/component/enable-metadata.component.html
@@ -1,5 +1,5 @@
- - 0}"
aria-label="Provider Item Accordion. Press Spacebar to open">
;
resolvers$: Observable;
loading$: Observable;
total$: Observable;
page = 1;
limit = 8;
- limited$: Observable;
entitiesOpen$: Observable<{ [key: string]: boolean }>;
@@ -35,8 +34,7 @@ export class EnableMetadataComponent implements OnInit {
private router: Router,
private modalService: NgbModal
) {
- this.resolvers$ = store.select(fromDashboard.getSearchResults);
- this.searchQuery$ = store.select(fromDashboard.getSearchQuery);
+ this.resolvers$ = store.select(fromResolver.getAllResolvers);
this.loading$ = store.select(fromDashboard.getSearchLoading);
this.entitiesOpen$ = store.select(fromDashboard.getOpenProviders);
@@ -44,7 +42,7 @@ export class EnableMetadataComponent implements OnInit {
}
ngOnInit(): void {
- this.store.dispatch(new LoadResolverRequest());
+ this.store.dispatch(new LoadAdminResolverRequest());
}
edit(entity: MetadataEntity): void {
diff --git a/ui/src/app/metadata/resolver/effect/collection.effects.ts b/ui/src/app/metadata/resolver/effect/collection.effects.ts
index ac5bc87c8..e76d2ca98 100644
--- a/ui/src/app/metadata/resolver/effect/collection.effects.ts
+++ b/ui/src/app/metadata/resolver/effect/collection.effects.ts
@@ -35,6 +35,7 @@ import { Notification, NotificationType } from '../../../notification/model/noti
import { I18nService } from '../../../i18n/service/i18n.service';
import * as fromRoot from '../../../app.reducer';
import * as fromI18n from '../../../i18n/reducer';
+import { FileBackedHttpMetadataResolver } from '../../domain/entity';
/* istanbul ignore next */
@@ -56,12 +57,12 @@ export class ResolverCollectionEffects {
@Effect()
loadAdminResolvers$ = this.actions$.pipe(
- ofType(ResolverCollectionActionTypes.LOAD_RESOLVER_REQUEST),
+ ofType(ResolverCollectionActionTypes.LOAD_ADMIN_RESOLVERS_REQUEST),
switchMap(() =>
this.descriptorService
.query({admin: true})
.pipe(
- map(descriptors => new LoadResolverSuccess(descriptors)),
+ map(descriptors => new LoadResolverSuccess(descriptors.map(d => new FileBackedHttpMetadataResolver(d)))),
catchError(error => of(new LoadResolverError(error)))
)
)