Implement feedback

Change padding into margin
Change 'Create link' to a button
Add placeholder to extension field
Fix pagination
This commit is contained in:
Yana De Pauw
2019-08-16 13:00:04 +02:00
parent 863189b2e5
commit 1d05680126
6 changed files with 16 additions and 12 deletions

View File

@@ -36,7 +36,7 @@ export class BitstreamFormatsComponent implements OnInit {
* Currently simply renders all bitstream formats
*/
config: FindAllOptions = Object.assign(new FindAllOptions(), {
elementsPerPage: 10000
elementsPerPage: 20
});
/**
@@ -45,7 +45,7 @@ export class BitstreamFormatsComponent implements OnInit {
*/
pageConfig: PaginationComponentOptions = Object.assign(new PaginationComponentOptions(), {
id: 'registry-bitstreamformats-pagination',
pageSize: 10000
pageSize: 20
});
constructor(private notificationsService: NotificationsService,
@@ -142,9 +142,11 @@ export class BitstreamFormatsComponent implements OnInit {
* @param event The page change event
*/
onPageChange(event) {
this.config.currentPage = event;
this.config = Object.assign(new FindAllOptions(), this.config, {
currentPage: event,
});
this.pageConfig.currentPage = event;
this.updateFormats();
this.pageState.next('pageChange');
}
ngOnInit(): void {