diff options
author | benal01 <bja4245@rit.edu> | 2025-03-24 10:27:31 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-24 10:27:31 -0400 |
commit | a05f6f0ab8dead76f937a2d7196fa005af0367fe (patch) | |
tree | 1190a5ad270359868bb59e73f9f7c22122344865 /ufund-ui/src/app/components/need-list/need-list.component.ts | |
parent | b725948521e81965a18991e7dd59a2bc84dbd460 (diff) | |
download | JellySolutions-a05f6f0ab8dead76f937a2d7196fa005af0367fe.tar.gz JellySolutions-a05f6f0ab8dead76f937a2d7196fa005af0367fe.tar.bz2 JellySolutions-a05f6f0ab8dead76f937a2d7196fa005af0367fe.zip |
hover feedback for need list's button
Diffstat (limited to '')
-rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.ts | 7 |
1 files changed, 7 insertions, 0 deletions
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 3f77df4..8ae7370 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 @@ -78,6 +78,13 @@ export class NeedListComponent { return type === ("HELPER" as unknown as userType); } + changeText(id : number, text : string) { + const label = document.getElementById('need-label-' + id); + if (label) { + label.innerHTML = text; + } + } + add(need: Need) { const currentUser = this.usersService.getCurrentUser(); //console.log("get current user in angular:", currentUser) |