Skip to content
Snippets Groups Projects
Commit 13d45bbe authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #15155 TIME 0:15 fix paginate

parent 8d9e4146
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@
{{'lang.mailsToSendToRecordManagement' | translate}}
</div>
<div style="width: 100%;">
<mat-paginator [length]="100" [hidePageSize]="true" [pageSize]="10" showFirstLastButtons
<mat-paginator [length]="100" [hidePageSize]="true" [pageSize]="10"
[style.display]="resources.length > 10 ? 'initial': 'none'"></mat-paginator>
<table *ngIf="!checking" mat-table [dataSource]="dataSource" multiTemplateDataRows
class="mat-elevation-z8" style="width:100%;box-shadow: none;">
......@@ -151,11 +151,11 @@
</div>
<span class="divider-modal"></span>
<div mat-dialog-actions class="actions">
<button mat-raised-button mat-button color="primary" [disabled]="checking || !isValid()"
<button mat-raised-button mat-button color="primary" [disabled]="loading || checking || !isValid()"
(click)="onSubmit('send')">{{'lang.send' | translate}}</button>
<button mat-raised-button mat-button color="primary" [disabled]="checking || !isValid()"
<button mat-raised-button mat-button color="primary" [disabled]="loading || checking || !isValid()"
(click)="onSubmit('download')">{{'lang.download' | translate}}</button>
<button mat-raised-button mat-button [disabled]="checking"
<button mat-raised-button mat-button [disabled]="loading || checking"
[mat-dialog-close]="">{{'lang.cancel' | translate}}</button>
</div>
</div>
\ No newline at end of file
......@@ -31,7 +31,7 @@ export class SendToRecordManagementComponent implements OnInit {
resourcesErrors: any[] = [];
criticalError: any = null;
dataSource = new MatTableDataSource<any>(this.resources);
dataSource = null;
senderArchiveEntity: string = '';
......@@ -91,10 +91,10 @@ export class SendToRecordManagementComponent implements OnInit {
this.archivalAgreements = data.archivalAgreements;
this.recipientArchiveEntities = data.recipientArchiveEntities;
this.senderArchiveEntity = data.senderArchiveEntity;
this.checking = false;
setTimeout(() => {
this.dataSource = new MatTableDataSource(this.resources);
this.dataSource.paginator = this.paginator;
this.checking = false;
}, 0);
}),
catchError((err: any) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment