Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Asset Downtime on assets lists page #6952

Merged
merged 7 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Components/Assets/AssetTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export interface AssetData {
manufacturer: string;
warranty_amc_end_of_validity: string;
resolved_middleware?: ResolvedMiddleware;
latest_status: string;
last_service: AssetService;
meta?: {
[key: string]: any;
Expand Down
7 changes: 7 additions & 0 deletions src/Components/Assets/AssetsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ const AssetsList = () => {
<Chip variant="danger" startIcon="l-cog" text="Not Working" />
)}
{warrantyAmcValidityChip(asset.warranty_amc_end_of_validity)}
{asset?.latest_status === "Down" && (
<Chip
variant="danger"
startIcon="l-link-broken"
text={asset?.latest_status}
/>
)}{" "}
</div>
</div>
</Link>
Expand Down
Loading