Skip to content

Commit

Permalink
[EPICSYSTEM-9] Add dateposted, displayName sort to all document grids…
Browse files Browse the repository at this point in the history
… on public (#680)
  • Loading branch information
tolkamps1 authored Mar 28, 2024
1 parent 6bca47f commit 828ccc7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export class ProjectNotificationDocumentsTableComponent implements OnInit, OnDes
5,
'-datePosted',
{ documentSource: 'PROJECT-NOTIFICATION' },
true
true,
'+displayName'
));

this.tableService.getValue(this.tableId)
Expand Down
5 changes: 3 additions & 2 deletions src/app/project/amendments/amendments-resolver.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export class AmendmentsResolver implements Resolve<void> {
this.tableService.clearTable(this.tableId);
const params = route.queryParamMap['params'];
const tableObject = this.tableTemplateUtils.updateTableObjectWithUrlParams(params, new TableObject2());

const projId = route.parent.paramMap.get('projId');
this.tableService.initTableData(this.tableId);
this.configService.lists.toPromise().then(async (list) => {
Expand All @@ -35,7 +34,9 @@ export class AmendmentsResolver implements Resolve<void> {
tableObject.currentPage,
tableObject.pageSize,
tableObject.sortBy,
this.utils.createProjectTabModifiers(Constants.optionalProjectDocTabs.AMENDMENT, list)
this.utils.createProjectTabModifiers(Constants.optionalProjectDocTabs.AMENDMENT, list),
false,
'+displayName'
));
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export class FeaturedDocumentsResolverService implements Resolve<void> {
1,
5,
'-datePosted',
{ documentSource: 'PROJECT', isFeatured: 'true' }
{ documentSource: 'PROJECT', isFeatured: 'true' },
false,
'+displayName'
));
}
}

0 comments on commit 828ccc7

Please sign in to comment.