File tree 2 files changed +0
-28
lines changed
2 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,9 @@ import Tooltip from "@material-ui/core/Tooltip"
6
6
import ErrorOutlineIcon from "@material-ui/icons/ErrorOutline"
7
7
import { FC } from "react"
8
8
import * as TypesGen from "../../api/typesGenerated"
9
- import { generateRandomString } from "../../util/random"
10
9
import { BaseIcon } from "./BaseIcon"
11
10
import { ShareIcon } from "./ShareIcon"
12
11
13
- const Language = {
14
- appTitle : ( appName : string , identifier : string ) : string =>
15
- `${ appName } - ${ identifier } ` ,
16
- }
17
-
18
12
export interface AppLinkProps {
19
13
appsHost ?: string
20
14
workspace : TypesGen . Workspace
@@ -98,18 +92,6 @@ export const AppLink: FC<AppLinkProps> = ({
98
92
href = { href }
99
93
target = "_blank"
100
94
className = { canClick ? styles . link : styles . disabledLink }
101
- onClick = {
102
- canClick
103
- ? ( event ) => {
104
- event . preventDefault ( )
105
- window . open (
106
- href ,
107
- Language . appTitle ( appDisplayName , generateRandomString ( 12 ) ) ,
108
- "width=900,height=600" ,
109
- )
110
- }
111
- : undefined
112
- }
113
95
>
114
96
{ button }
115
97
</ Link >
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ import ComputerIcon from "@material-ui/icons/Computer"
5
5
import { FC } from "react"
6
6
import * as TypesGen from "../../api/typesGenerated"
7
7
import { combineClasses } from "../../util/combineClasses"
8
- import { generateRandomString } from "../../util/random"
9
8
10
9
export const Language = {
11
10
linkText : "Terminal" ,
12
- terminalTitle : ( identifier : string ) : string => `Terminal - ${ identifier } ` ,
13
11
}
14
12
15
13
export interface TerminalLinkProps {
@@ -42,14 +40,6 @@ export const TerminalLink: FC<React.PropsWithChildren<TerminalLinkProps>> = ({
42
40
href = { href }
43
41
className = { combineClasses ( [ styles . link , className ] ) }
44
42
target = "_blank"
45
- onClick = { ( event ) => {
46
- event . preventDefault ( )
47
- window . open (
48
- href ,
49
- Language . terminalTitle ( generateRandomString ( 12 ) ) ,
50
- "width=900,height=600" ,
51
- )
52
- } }
53
43
>
54
44
< Button startIcon = { < ComputerIcon /> } size = "small" >
55
45
{ Language . linkText }
You can’t perform that action at this time.
0 commit comments