* added authenticate guard

* added metadata schema form, with the form model fields & validation and layout
* fixed the pagination for schemas and fields
* added reducer and actions for the registry state
This commit is contained in:
Samuel
2019-01-17 14:47:22 +01:00
parent 2d0ab6295a
commit 390966f30d
18 changed files with 329 additions and 44 deletions

View File

@@ -13,13 +13,17 @@ import { PaginationComponentOptions } from '../../../shared/pagination/paginatio
export class MetadataRegistryComponent {
metadataSchemas: Observable<RemoteData<PaginatedList<MetadataSchema>>>;
config: PaginationComponentOptions = Object.assign(new PaginationComponentOptions(), {
id: 'registry-metadataschemas-pagination',
pageSize: 10000
pageSize: 2
});
constructor(private registryService: RegistryService) {
this.updateSchemas();
this.metadataSchemas.subscribe(
schemas => console.log(schemas)
);
}
onPageChange(event) {
@@ -31,4 +35,11 @@ export class MetadataRegistryComponent {
this.metadataSchemas = this.registryService.getMetadataSchemas(this.config);
}
editSchema(schema) {
console.log("iedemenne");
}
isActive(schema) {
return true;
}
}