mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-24 00:23:36 +00:00
fix(packages): add needsUpdate and isSecurityUpdate fields to package hosts
This commit is contained in:
@@ -126,6 +126,7 @@ router.get("/", async (req, res) => {
|
||||
osType: hp.hosts.os_type,
|
||||
currentVersion: hp.current_version,
|
||||
availableVersion: hp.available_version,
|
||||
needsUpdate: hp.needs_update,
|
||||
isSecurityUpdate: hp.is_security_update,
|
||||
})),
|
||||
stats: {
|
||||
|
||||
@@ -400,8 +400,8 @@ const PackageDetail = () => {
|
||||
{host.current_version || "Unknown"}
|
||||
</td>
|
||||
<td className="px-6 py-4 whitespace-nowrap">
|
||||
{host.needs_update ? (
|
||||
host.is_security_update ? (
|
||||
{host.needsUpdate ? (
|
||||
host.isSecurityUpdate ? (
|
||||
<span className="badge-danger flex items-center gap-1 w-fit">
|
||||
<Shield className="h-3 w-3" />
|
||||
Security Update
|
||||
@@ -418,8 +418,8 @@ const PackageDetail = () => {
|
||||
)}
|
||||
</td>
|
||||
<td className="px-6 py-4 whitespace-nowrap text-sm text-secondary-500 dark:text-secondary-300">
|
||||
{host.last_updated
|
||||
? formatRelativeTime(host.last_updated)
|
||||
{host.lastUpdate
|
||||
? formatRelativeTime(host.lastUpdate)
|
||||
: "Never"}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user