Summary:
The node agent status styling was being defaulted to the red/error style as it was switching on `status`
instead of `nodeAgent.state`.
Also, the lastError label needs to select error code part of the translation key instead of passing the whole object.
This diff fixes the issue by correcting the switch statement and selecting the string error code to pass to the translation key.
Test Plan:
Verify agent status styling is applied correctly different node agent statuses.
{F332291}
Verify agent error labels show up as expected.
{F332298}
Reviewers: rmadhavan, nsingh
Reviewed By: rmadhavan
Subscribers: yugaware
Differential Revision: https://phorge.dev.yugabyte.com/D41798