diff --git a/frontend/pages/hosts/details/cards/Activity/CommandItem/CommandItem.tsx b/frontend/pages/hosts/details/cards/Activity/CommandItem/CommandItem.tsx index cdd8bf45c0..d9e6400830 100644 --- a/frontend/pages/hosts/details/cards/Activity/CommandItem/CommandItem.tsx +++ b/frontend/pages/hosts/details/cards/Activity/CommandItem/CommandItem.tsx @@ -38,9 +38,10 @@ const getStatusText = (command: ICommand): string => { }; const CommandItem = ({ command, onShowDetails }: ICommandItemProps) => { - const { request_type, updated_at, name } = command; + const { request_type, updated_at, name, status } = command; const statusText = getStatusText(command); + const willRetryText = status === "NotNow" ? " Fleet will try again." : ""; const onShowCommandDetails = (e: React.MouseEvent) => { e.stopPropagation(); @@ -50,10 +51,11 @@ const CommandItem = ({ command, onShowDetails }: ICommandItemProps) => { const activityText = name ? ( <> The {request_type} command for {name} {statusText}. + {willRetryText} ) : ( <> - The {request_type} command {statusText}. + The {request_type} command {statusText}.{willRetryText} );