diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-04-07 16:49:21 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-04-07 16:49:21 -0400 |
commit | 8b64b8bd43f987b924d74d0ea597b7b606ca9357 (patch) | |
tree | c8c3229c54955a4a037b0ce0a016221e8784af42 /ufund-ui/src/app/components/need-list | |
parent | bb4e0e55fee7ec8f34c36e6299301d612a0de2ce (diff) | |
parent | 7635188ed6182a72facd8ab3299f13c7217a8abd (diff) | |
download | JellySolutions-8b64b8bd43f987b924d74d0ea597b7b606ca9357.tar.gz JellySolutions-8b64b8bd43f987b924d74d0ea597b7b606ca9357.tar.bz2 JellySolutions-8b64b8bd43f987b924d74d0ea597b7b606ca9357.zip |
Merge branch 'main' into light-mode
# Conflicts:
# ufund-ui/src/styles.css
Diffstat (limited to 'ufund-ui/src/app/components/need-list')
-rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.html | 4 | ||||
-rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.ts | 1 |
2 files changed, 3 insertions, 2 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 0e5b762..99c9f97 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 @@ -21,7 +21,7 @@ <div class="prog"> <span id="hover-status-label-{{need.id}}"> </span> - <span>{{need.type.toString() == 'MONETARY' ? '$' : ''}}{{need.current}}/{{need.type.toString() == 'MONETARY' ? '$' : ''}}{{need.maxGoal}} ({{((need.current / need.maxGoal) * 100).toFixed(0)}}%)</span> + <span>{{need.type.toString() == 'MONETARY' ? '$' : ''}}{{need.current.toLocaleString()}} / {{need.type.toString() == 'MONETARY' ? '$' : ''}}{{need.maxGoal.toLocaleString()}} ({{((need.current / need.maxGoal) * 100).toFixed(0)}}%)</span> <progress [value]="need.current" [max]="need.maxGoal"></progress> </div> </div> @@ -32,7 +32,7 @@ </div> </div> -<div id="page-selector"> +<div *ngIf="itemsPerPage !== Infinity" id="page-selector"> <button [disabled]="!(currentPage !== 0)" (click)="firstPage()"><span class="icon">first_page</span></button> <button [disabled]="!(currentPage > 0)" (click)="decrementPage()"><span class="icon">arrow_back_ios_new</span></button> <span>Page {{currentPage + 1}} of {{totalPages}}</span> 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 7ca0ae7..2fbf9d2 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 @@ -59,5 +59,6 @@ export class NeedListComponent implements OnChanges { } protected readonly GoalType = GoalType; + protected readonly Infinity = Infinity; } |