mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Pop out all apps (#2346)
This commit is contained in:
@@ -16,7 +16,15 @@ export const AppLink: FC<AppLinkProps> = ({ userName, workspaceName, appName, ap
|
||||
const href = `/@${userName}/${workspaceName}/apps/${appName}`
|
||||
|
||||
return (
|
||||
<Link href={href} target="_blank" className={styles.link}>
|
||||
<Link
|
||||
href={href}
|
||||
target="_blank"
|
||||
className={styles.link}
|
||||
onClick={(event) => {
|
||||
event.preventDefault()
|
||||
window.open(href, appName, "width=900,height=600")
|
||||
}}
|
||||
>
|
||||
<img
|
||||
className={combineClasses([styles.icon, appIcon === "" ? "empty" : ""])}
|
||||
alt={`${appName} Icon`}
|
||||
|
||||
Reference in New Issue
Block a user