diff options
| author | benal01 <bja4245@rit.edu> | 2025-03-27 08:54:06 -0400 | 
|---|---|---|
| committer | benal01 <bja4245@rit.edu> | 2025-03-27 08:54:06 -0400 | 
| commit | 84083e7229678c30d827270bfa25de66a02d7b8c (patch) | |
| tree | f3d42c90b60fc63a4bce9bf11e50bf15d02ab2a6 /ufund-ui/src | |
| parent | 057efa1b557d5d874300c6cda8c7d74519c946d6 (diff) | |
| download | JellySolutions-84083e7229678c30d827270bfa25de66a02d7b8c.tar.gz JellySolutions-84083e7229678c30d827270bfa25de66a02d7b8c.tar.bz2 JellySolutions-84083e7229678c30d827270bfa25de66a02d7b8c.zip  | |
display name for algorithms
Diffstat (limited to 'ufund-ui/src')
| -rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.html | 2 | ||||
| -rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.ts | 10 | 
2 files changed, 6 insertions, 6 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html index 9799493..a653527 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.html +++ b/ufund-ui/src/app/components/need-list/need-list.component.html @@ -3,7 +3,7 @@      <label for="sort">Sort by:</label>      <select [(ngModel)]="sortSelection" id="sort" (change)="changeSortAlgo(sortSelection, searchForm.value)">          <option *ngFor="let algorithm of SortingAlgoArrays" value="{{algorithm.name}}"> -            {{algorithm.name}} +            {{algorithm.display}}          </option>      </select>      <form id="search-form" #searchForm="ngForm"> diff --git a/ufund-ui/src/app/components/need-list/need-list.component.ts b/ufund-ui/src/app/components/need-list/need-list.component.ts index c1063ce..2fdd993 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.ts +++ b/ufund-ui/src/app/components/need-list/need-list.component.ts @@ -48,11 +48,11 @@ export class NeedListComponent {    sortSelection: string = '';    currentSortAlgo: sortAlgo = sortByMaxGoal; -  SortingAlgoArrays: {func:sortAlgo,name:string}[] = [ -    {func:sortByMaxGoal,name:"sortByMaxGoal"}, -    {func:sortByName,name:"sortByName"}, -    {func:sortByNameReverse,name:"sortByNameReverse"}, -    {func:sortByMinGoal,name:"sortByMinGoal"}, +  SortingAlgoArrays: {func:sortAlgo,name:string,display:string}[] = [ +    {func:sortByMaxGoal,name:"sortByMaxGoal", display:"Max Goal"}, +    {func:sortByName,name:"sortByName", display:"Name"}, +    {func:sortByNameReverse,name:"sortByNameReverse", display:"Name (reverse)"}, +    {func:sortByMinGoal,name:"sortByMinGoal", display:"Min Goal"},    ];    @Output() currentNeed = new EventEmitter<Need>();  | 
