From 95e92fc2bdb390715f7d87d4fa8e5fdb8bf87aff Mon Sep 17 00:00:00 2001 From: tanshu Date: Sat, 30 May 2020 16:18:25 +0530 Subject: [PATCH] Fixed: Star now showing in employee list --- brewman/routers/employee.py | 2 +- .../employee/employee-list/employee-list.component.css | 3 +++ .../employee/employee-list/employee-list.component.html | 8 +++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/brewman/routers/employee.py b/brewman/routers/employee.py index 7cd24178..27a48081 100644 --- a/brewman/routers/employee.py +++ b/brewman/routers/employee.py @@ -137,11 +137,11 @@ async def show_list(db: Session = Depends(get_db), user: UserToken = Depends(get "points": item.points, "isActive": item.is_active, "costCentre": item.cost_centre.name, - # "url": request.route_url("employees_id", id=item.id), "joiningDate": item.joining_date.strftime("%d-%b-%Y"), "leavingDate": "" if item.is_active else item.leaving_date.strftime("%d-%b-%Y"), + "isStarred": item.is_starred } for item in db.query(Employee) .order_by(desc(Employee.is_active)) diff --git a/overlord/src/app/employee/employee-list/employee-list.component.css b/overlord/src/app/employee/employee-list/employee-list.component.css index e69de29b..3417e4c1 100644 --- a/overlord/src/app/employee/employee-list/employee-list.component.css +++ b/overlord/src/app/employee/employee-list/employee-list.component.css @@ -0,0 +1,3 @@ +.gold { + color: gold; +} diff --git a/overlord/src/app/employee/employee-list/employee-list.component.html b/overlord/src/app/employee/employee-list/employee-list.component.html index f4b66e1a..a94643bd 100644 --- a/overlord/src/app/employee/employee-list/employee-list.component.html +++ b/overlord/src/app/employee/employee-list/employee-list.component.html @@ -29,7 +29,13 @@ Name - {{row.name}} + + + star + + {{row.name}} + +