Skip to content
Merged
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
12 changes: 11 additions & 1 deletion extensions/cli/src/ui/UpdateNotification.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Text } from "ink";
import { Box, Text } from "ink";
import React, { useMemo } from "react";

import { useServices } from "../hooks/useService.js";
Expand All @@ -9,6 +9,7 @@ import {
} from "../services/types.js";

import { useTerminalSize } from "./hooks/useTerminalSize.js";
import { LoadingAnimation } from "./LoadingAnimation.js";

interface UpdateNotificationProps {
isRemoteMode?: boolean;
Expand Down Expand Up @@ -48,6 +49,15 @@ const UpdateNotification: React.FC<UpdateNotificationProps> = ({
return <Text color="cyan">◉ Remote Mode</Text>;
}

if (services.update?.status === UpdateStatus.UPDATING) {
return (
<Box columnGap={1}>
<LoadingAnimation />
<Text color={color}>{`${text}`}</Text>
</Box>
);
}

return <Text color={color}>{`◉ ${text}`}</Text>;
};

Expand Down
Loading