Skip to content

Commit

Permalink
fix: bugs in displaying repo / plan / activity status
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Sep 5, 2024
1 parent bfaad8b commit cceda4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webui/src/components/ActivityBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const ActivityBar = () => {
const displayName = displayTypeToString(getTypeForDisplay(op));

return (
<span key={idx}>
<span key={idx} style={{ marginRight: "2em" }}>
{displayName} in progress for plan {op.planId} to {op.repoId} for{" "}
{formatDuration(Date.now() - Number(op.unixTimeStartMs))}
</span>
Expand Down
6 changes: 5 additions & 1 deletion webui/src/views/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,11 @@ const IconForResource = ({
case "createdOperations":
case "updatedOperations":
const ops = event.event.value.operations;
if (ops.find((op) => op.planId === planId && op.repoId === repoId)) {
if (
ops.find(
(op) => (!planId || op.planId === planId) && op.repoId === repoId
)
) {
refresh();
}
break;
Expand Down

0 comments on commit cceda4f

Please sign in to comment.