Skip to content
Snippets Groups Projects
Verified Commit 87627071 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12091 TIME 0:10 change order in search list after change page

parent 7907bb91
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
</div>
<div style="overflow: auto;">
<mat-table cdkDropList id="document-list" #tableResourceListSort="matSort" [dataSource]="data" matSort
matSortActive="chrono" matSortDisableClear matSortDirection="asc" style="width:100%;min-width: 800px;">
matSortActive="creationDate" matSortDisableClear matSortDirection="desc" style="width:100%;min-width: 800px;">
<ng-container matColumnDef="action">
<mat-header-cell *matHeaderCellDef style="width: 70px;flex: initial;">
......
......@@ -61,7 +61,7 @@ export class SearchAdvListComponent implements OnInit {
initResourceList() {
this.resultListDatabase = new ResourceListHttpDao(this.http);
this.paginator.pageIndex = 0;
this.sort.active = 'resId';
this.sort.active = 'creationDate';
this.sort.direction = 'desc';
this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0);
......@@ -165,4 +165,4 @@ export class ResourceListHttpDao {
return this.http.get<ResourceList>(requestUrl);
}
}
\ No newline at end of file
}
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