diff options
| author | benal01 <bja4245@rit.edu> | 2025-03-22 12:56:28 -0400 | 
|---|---|---|
| committer | benal01 <bja4245@rit.edu> | 2025-03-22 12:56:28 -0400 | 
| commit | b725948521e81965a18991e7dd59a2bc84dbd460 (patch) | |
| tree | 1ae83c054aabcc7aa528beb8b3b57c7bd0715eb8 /ufund-ui/src/app/components/need-list/need-list.component.html | |
| parent | 2ae7c1036b7ce398e2b18928215f74d57bb3cec6 (diff) | |
| download | JellySolutions-b725948521e81965a18991e7dd59a2bc84dbd460.tar.gz JellySolutions-b725948521e81965a18991e7dd59a2bc84dbd460.tar.bz2 JellySolutions-b725948521e81965a18991e7dd59a2bc84dbd460.zip  | |
need list uses button instead of link
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.html')
| -rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.html | 20 | 
1 files changed, 11 insertions, 9 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 0345519..fef22d7 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 @@ -12,12 +12,14 @@  <h2 *ngIf="searchResults.length == needs.length"> All Needs </h2>  <h2 *ngIf="searchResults.length == 0"> No Results Found </h2> -<li *ngFor="let need of searchResults"> -    <a routerLink="/need/{{need.id}}"> -        {{need.name}} -    </a> -    <button (click)="delete(need.id)" *ngIf="isManager()">  -        <img class="icon" src="/delete.png" alt="Delete"> -    </button> -    <button (click)="add(need)" *ngIf="isHelper()">Add To Basket</button> -</li> +<ul> +    <li *ngFor="let need of searchResults"> +        <button [routerLink]="'/need/' + need.id"> +            {{need.name}} +            <button (click)="delete(need.id)" *ngIf="isManager()">  +                <img class="icon" src="/delete.png" alt="Delete"> +            </button> +            <button (click)="add(need)" *ngIf="isHelper()">Add To Basket</button> +        </button> +    </li> +</ul>
\ No newline at end of file  | 
