File tree Expand file tree Collapse file tree 2 files changed +0
-28
lines changed
Expand file tree Collapse file tree 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"
66import ErrorOutlineIcon from "@material-ui/icons/ErrorOutline"
77import { FC } from "react"
88import * as TypesGen from "../../api/typesGenerated"
9- import { generateRandomString } from "../../util/random"
109import { BaseIcon } from "./BaseIcon"
1110import { ShareIcon } from "./ShareIcon"
1211
13- const Language = {
14- appTitle : ( appName : string , identifier : string ) : string =>
15- `${ appName } - ${ identifier } ` ,
16- }
17-
1812export interface AppLinkProps {
1913 appsHost ?: string
2014 workspace : TypesGen . Workspace
@@ -98,18 +92,6 @@ export const AppLink: FC<AppLinkProps> = ({
9892 href = { href }
9993 target = "_blank"
10094 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- }
11395 >
11496 { button }
11597 </ Link >
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ import ComputerIcon from "@material-ui/icons/Computer"
55import { FC } from "react"
66import * as TypesGen from "../../api/typesGenerated"
77import { combineClasses } from "../../util/combineClasses"
8- import { generateRandomString } from "../../util/random"
98
109export const Language = {
1110 linkText : "Terminal" ,
12- terminalTitle : ( identifier : string ) : string => `Terminal - ${ identifier } ` ,
1311}
1412
1513export interface TerminalLinkProps {
@@ -42,14 +40,6 @@ export const TerminalLink: FC<React.PropsWithChildren<TerminalLinkProps>> = ({
4240 href = { href }
4341 className = { combineClasses ( [ styles . link , className ] ) }
4442 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- } }
5343 >
5444 < Button startIcon = { < ComputerIcon /> } size = "small" >
5545 { Language . linkText }
You can’t perform that action at this time.
0 commit comments