From e509d63b5d65e88dbeaac12f356dededacd03fb9 Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Date: Fri, 6 Oct 2023 09:08:36 -0600 Subject: [PATCH] Format --- .../affiliation-stacks-groups.component.html | 2 +- .../affiliation-stacks-groups.component.ts | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/app/record/components/affiliation-stacks-groups/affiliation-stacks-groups.component.html b/src/app/record/components/affiliation-stacks-groups/affiliation-stacks-groups.component.html index a0d613da9e..b972851b0f 100644 --- a/src/app/record/components/affiliation-stacks-groups/affiliation-stacks-groups.component.html +++ b/src/app/record/components/affiliation-stacks-groups/affiliation-stacks-groups.component.html @@ -86,7 +86,7 @@ [(expandedContent)]="expandedContent['EDUCATION_AND_QUALIFICATION']" (expandedContentChange)="expandedContentChange.emit(expandedContent)" [isPublicRecord]="isPublicRecord" - [sortTypes]="educationAndQualification" + [sortTypes]="educationAndQualificationSortTypes" [sortType]="'end'" (sort)="sortEvent($event, 'EDUCATION_AND_QUALIFICATION')" id="cy-affiliation-education-and-qualification" diff --git a/src/app/record/components/affiliation-stacks-groups/affiliation-stacks-groups.component.ts b/src/app/record/components/affiliation-stacks-groups/affiliation-stacks-groups.component.ts index fff24b7966..9cdf762a63 100644 --- a/src/app/record/components/affiliation-stacks-groups/affiliation-stacks-groups.component.ts +++ b/src/app/record/components/affiliation-stacks-groups/affiliation-stacks-groups.component.ts @@ -55,8 +55,17 @@ export class AffiliationStacksGroupsComponent implements OnInit { expandedContentChange: EventEmitter = new EventEmitter() professionalActivitiesTogglz = false sortTypes: SortOrderType[] = ['title', 'start', 'end'] - professionalActivitiesSortTypes: SortOrderType[] = ['title', 'type', 'start', 'end'] - educationAndQualification: SortOrderType[] = ['title', 'start', 'end'] + professionalActivitiesSortTypes: SortOrderType[] = [ + 'title', + 'type', + 'start', + 'end', + ] + educationAndQualificationSortTypes: SortOrderType[] = [ + 'title', + 'start', + 'end', + ] constructor( private _record: RecordService, private _recordAffiliationService: RecordAffiliationService, @@ -75,7 +84,7 @@ export class AffiliationStacksGroupsComponent implements OnInit { if (sourceSortingTogglz) { this.sortTypes.push('source') this.professionalActivitiesSortTypes.push('source') - this.educationAndQualification.push('source') + this.educationAndQualificationSortTypes.push('source') } }) this.$loading = this._recordAffiliationService.$loading