From 828ccc729d97ef86a551dbce5e6291e74fdadd45 Mon Sep 17 00:00:00 2001 From: Shaelyn Tolkamp <46355612+tolkamps1@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:30:45 -0700 Subject: [PATCH] [EPICSYSTEM-9] Add dateposted, displayName sort to all document grids on public (#680) --- .../project-notification-documents-table.component.ts | 3 ++- src/app/project/amendments/amendments-resolver.service.ts | 5 +++-- .../featured-documents-resolver.service.ts | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/app/project-notifications/project-notification-documents-table/project-notification-documents-table.component.ts b/src/app/project-notifications/project-notification-documents-table/project-notification-documents-table.component.ts index d35cd7ba..982ba323 100644 --- a/src/app/project-notifications/project-notification-documents-table/project-notification-documents-table.component.ts +++ b/src/app/project-notifications/project-notification-documents-table/project-notification-documents-table.component.ts @@ -103,7 +103,8 @@ export class ProjectNotificationDocumentsTableComponent implements OnInit, OnDes 5, '-datePosted', { documentSource: 'PROJECT-NOTIFICATION' }, - true + true, + '+displayName' )); this.tableService.getValue(this.tableId) diff --git a/src/app/project/amendments/amendments-resolver.service.ts b/src/app/project/amendments/amendments-resolver.service.ts index f20f2444..33d443c9 100644 --- a/src/app/project/amendments/amendments-resolver.service.ts +++ b/src/app/project/amendments/amendments-resolver.service.ts @@ -23,7 +23,6 @@ export class AmendmentsResolver implements Resolve { 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) => { @@ -35,7 +34,9 @@ export class AmendmentsResolver implements Resolve { tableObject.currentPage, tableObject.pageSize, tableObject.sortBy, - this.utils.createProjectTabModifiers(Constants.optionalProjectDocTabs.AMENDMENT, list) + this.utils.createProjectTabModifiers(Constants.optionalProjectDocTabs.AMENDMENT, list), + false, + '+displayName' )); }); } diff --git a/src/app/project/featured-documents/featured-documents-resolver.service.ts b/src/app/project/featured-documents/featured-documents-resolver.service.ts index dd77ee69..f15586db 100644 --- a/src/app/project/featured-documents/featured-documents-resolver.service.ts +++ b/src/app/project/featured-documents/featured-documents-resolver.service.ts @@ -23,7 +23,9 @@ export class FeaturedDocumentsResolverService implements Resolve { 1, 5, '-datePosted', - { documentSource: 'PROJECT', isFeatured: 'true' } + { documentSource: 'PROJECT', isFeatured: 'true' }, + false, + '+displayName' )); } }