Skip to content

Commit

Permalink
Merge pull request #1424 from cityofaustin/16950_activity_log_team_me…
Browse files Browse the repository at this point in the history
…mber_role

fixes bug where role update is reflected as notes update
  • Loading branch information
tillyw authored Sep 25, 2024
2 parents b0ea405 + 9b148a2 commit 18fe3eb
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,24 @@ export const formatPersonnelActivity = (change, userList) => {
};
}

// currently 'notes' is the only other editable field on this table
return {
// update the notes field
if (change.description[0].field === "notes")
return {
changeIcon,
changeText: [
{ text: "Updated team member notes for " },
{ text: userList[changeData.new.user_id], style: "boldText" },
],
};

// the only other change that would be reflected here is adding or removing roles
else {
return {
changeIcon,
changeText: [
{ text: "Updated personnel role for "},
{ text: userList[changeData.new.user_id], style: "boldText"},
]
}
}
};

0 comments on commit 18fe3eb

Please sign in to comment.