File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed
site/src/modules/resources Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,14 @@ import {
12
12
HelpTooltipTitle ,
13
13
HelpTooltipTrigger ,
14
14
} from "components/HelpTooltip/HelpTooltip" ;
15
+ import { Spinner } from "components/Spinner/Spinner" ;
15
16
import {
16
17
Tooltip ,
17
18
TooltipContent ,
18
19
TooltipProvider ,
19
20
TooltipTrigger ,
20
21
} from "components/Tooltip/Tooltip" ;
21
- import { ExternalLinkIcon , Loader2Icon } from "lucide-react" ;
22
+ import { ExternalLinkIcon } from "lucide-react" ;
22
23
import type { FC } from "react" ;
23
24
import { useEffect , useState } from "react" ;
24
25
import { portForwardURL } from "utils/portForward" ;
@@ -95,7 +96,8 @@ export const AgentDevcontainerCard: FC<AgentDevcontainerCardProps> = ({
95
96
< header className = "flex justify-between items-center mb-4" >
96
97
< div className = "flex items-center gap-2" >
97
98
< h3 className = "m-0 text-xs font-medium text-content-secondary" >
98
- { container . name }
99
+ dev container:{ " " }
100
+ < span className = "font-semibold" > { container . name } </ span >
99
101
</ h3 >
100
102
{ container . devcontainer_dirty && (
101
103
< HelpTooltip >
@@ -117,18 +119,11 @@ export const AgentDevcontainerCard: FC<AgentDevcontainerCardProps> = ({
117
119
< Button
118
120
variant = "outline"
119
121
size = "sm"
120
- className = "text-xs font-medium"
121
122
onClick = { handleRecreateDevcontainer }
122
123
disabled = { isRecreating }
123
124
>
124
- { isRecreating ? (
125
- < >
126
- < Loader2Icon className = "mr-2 h-4 w-4 animate-spin" />
127
- Recreating...
128
- </ >
129
- ) : (
130
- "Recreate"
131
- ) }
125
+ < Spinner loading = { isRecreating } />
126
+ Recreate
132
127
</ Button >
133
128
134
129
< AgentDevcontainerSSHButton
Original file line number Diff line number Diff line change @@ -163,10 +163,10 @@ export const AgentRow: FC<AgentRowProps> = ({
163
163
// This is used to show the parent apps of the devcontainer.
164
164
const [ showParentApps , setShowParentApps ] = useState ( false ) ;
165
165
166
- const shouldDisplayAppsSection =
167
- agent . status === "connected" &&
168
- containers &&
169
- ( containers . length > 0 ? showParentApps : true ) ;
166
+ let shouldDisplayAppsSection = shouldDisplayAgentApps ;
167
+ if ( containers && containers . length > 0 && ! showParentApps ) {
168
+ shouldDisplayAppsSection = false ;
169
+ }
170
170
171
171
return (
172
172
< Stack
You can’t perform that action at this time.
0 commit comments