File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
site/src/components/Resources Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,14 @@ export const AgentRowPreview: FC<AgentRowPreviewProps> = ({
107
107
{ DisplayAppNameMap [ "web_terminal" ] }
108
108
</ AppPreview >
109
109
) }
110
+ { agent . display_apps . includes ( "ssh_helper" ) && (
111
+ < AppPreview > { DisplayAppNameMap [ "ssh_helper" ] } </ AppPreview >
112
+ ) }
113
+ { agent . display_apps . includes ( "port_forwarding_helper" ) && (
114
+ < AppPreview >
115
+ { DisplayAppNameMap [ "port_forwarding_helper" ] }
116
+ </ AppPreview >
117
+ ) }
110
118
{ /* VSCode display apps (vscode, vscode_insiders) get special presentation */ }
111
119
{ agent . display_apps . includes ( "vscode" ) ? (
112
120
< AppPreview >
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import { BaseIcon } from "./BaseIcon";
14
14
import { ShareIcon } from "./ShareIcon" ;
15
15
16
16
export const DisplayAppNameMap : Record < TypesGen . DisplayApp , string > = {
17
- port_forwarding_helper : "Open ports " ,
18
- ssh_helper : "Connect SSH" ,
17
+ port_forwarding_helper : "Ports " ,
18
+ ssh_helper : "SSH" ,
19
19
vscode : "VS Code Desktop" ,
20
20
vscode_insiders : "VS Code Insiders" ,
21
21
web_terminal : "Terminal" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import {
25
25
PopoverContent ,
26
26
PopoverTrigger ,
27
27
} from "components/Popover/Popover" ;
28
- import { DisplayAppNameMap } from "./AppLink/AppLink" ;
29
28
import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown" ;
30
29
31
30
export interface PortForwardButtonProps {
@@ -75,7 +74,7 @@ export const PortForwardButton: FC<PortForwardButtonProps> = (props) => {
75
74
)
76
75
}
77
76
>
78
- { DisplayAppNameMap [ "port_forwarding_helper" ] }
77
+ Open ports
79
78
</ Button >
80
79
</ PopoverTrigger >
81
80
< PopoverContent horizontal = "right" classes = { { paper } } >
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import {
14
14
PopoverTrigger ,
15
15
} from "components/Popover/Popover" ;
16
16
import { Stack } from "components/Stack/Stack" ;
17
- import { DisplayAppNameMap } from "../AppLink/AppLink" ;
18
17
import Button from "@mui/material/Button" ;
19
18
import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown" ;
20
19
@@ -42,7 +41,7 @@ export const SSHButton: FC<PropsWithChildren<SSHButtonProps>> = ({
42
41
endIcon = { < KeyboardArrowDown /> }
43
42
css = { { fontSize : 13 , padding : "8px 12px" } }
44
43
>
45
- { DisplayAppNameMap [ "ssh_helper" ] }
44
+ Connect to SSH
46
45
</ Button >
47
46
</ PopoverTrigger >
48
47
You can’t perform that action at this time.
0 commit comments