diff --git a/frontend/src/components/update/UpdateMenu.tsx b/frontend/src/components/update/UpdateMenu.tsx
index 0373eb419..991909f76 100644
--- a/frontend/src/components/update/UpdateMenu.tsx
+++ b/frontend/src/components/update/UpdateMenu.tsx
@@ -1,6 +1,6 @@
import { Component, For, Show } from "solid-js";
import { useAppState } from "../../state/StateProvider";
-import { Operation, Update as UpdateType, UpdateStatus } from "../../types";
+import { Operation, Update as UpdateType } from "../../types";
import {
combineClasses,
readableDuration,
@@ -51,46 +51,55 @@ const UpdateMenu: Component<{ update: UpdateType }> = (p) => {
export default UpdateMenu;
const UpdateMenuContent: Component<{ update: UpdateType }> = (p) => {
- const { usernames } = useAppState();
return (
-
-
- status: {p.update.status.replaceAll("_", " ")}
-
-
- {readableMonitorTimestamp(p.update.start_ts)}
-
-
-
- duration:
- {readableDuration(p.update.start_ts, p.update.end_ts!)}
-
-
-
-
- {usernames.get(p.update.operator)}
-
-
-
- version:
- {readableVersion(p.update.version!)}
-
-
-
+
);
};
+const UpdateSummary: Component<{ update: UpdateType }> = (p) => {
+ const { usernames } = useAppState();
+ return (
+
+
+ status: {p.update.status.replaceAll("_", " ")}
+
+
+ {readableMonitorTimestamp(p.update.start_ts)}
+
+
+ duration:
+
+ {p.update.end_ts
+ ? readableDuration(p.update.start_ts, p.update.end_ts)
+ : "unknown"}
+
+
+
+
+ {usernames.get(p.update.operator)}
+
+
+
+ version:
+ {readableVersion(p.update.version!)}
+
+
+
+ );
+}
+
const UpdateLogs: Component<{ update: UpdateType }> = (p) => {
return (