mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Remove workspace Settings button and page (#1807)
This commit is contained in:
@@ -17,7 +17,6 @@ import { UsersPage } from "./pages/UsersPage/UsersPage"
|
||||
import { WorkspaceBuildPage } from "./pages/WorkspaceBuildPage/WorkspaceBuildPage"
|
||||
import { WorkspacePage } from "./pages/WorkspacePage/WorkspacePage"
|
||||
import { WorkspaceSchedulePage } from "./pages/WorkspaceSchedulePage/WorkspaceSchedulePage"
|
||||
import { WorkspaceSettingsPage } from "./pages/WorkspaceSettingsPage/WorkspaceSettingsPage"
|
||||
|
||||
const TerminalPage = React.lazy(() => import("./pages/TerminalPage/TerminalPage"))
|
||||
const WorkspacesPage = React.lazy(() => import("./pages/WorkspacesPage/WorkspacesPage"))
|
||||
@@ -75,14 +74,6 @@ export const AppRouter: React.FC = () => (
|
||||
</AuthAndFrame>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="edit"
|
||||
element={
|
||||
<AuthAndFrame>
|
||||
<WorkspaceSettingsPage />
|
||||
</AuthAndFrame>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="schedule"
|
||||
element={
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import Button from "@material-ui/core/Button"
|
||||
import Link from "@material-ui/core/Link"
|
||||
import { makeStyles } from "@material-ui/core/styles"
|
||||
import CancelIcon from "@material-ui/icons/Cancel"
|
||||
import CloudDownloadIcon from "@material-ui/icons/CloudDownload"
|
||||
import PlayArrowRoundedIcon from "@material-ui/icons/PlayArrowRounded"
|
||||
import StopIcon from "@material-ui/icons/Stop"
|
||||
import React from "react"
|
||||
import { Link as RouterLink } from "react-router-dom"
|
||||
import { Workspace } from "../../api/typesGenerated"
|
||||
import { getWorkspaceStatus, WorkspaceStatus } from "../../util/workspace"
|
||||
import { Stack } from "../Stack/Stack"
|
||||
@@ -60,9 +58,6 @@ export const WorkspaceActions: React.FC<WorkspaceActionsProps> = ({
|
||||
|
||||
return (
|
||||
<Stack direction="row" spacing={1}>
|
||||
<Link underline="none" component={RouterLink} to="edit">
|
||||
<Button variant="outlined">Settings</Button>
|
||||
</Link>
|
||||
{canStart(workspaceStatus) && (
|
||||
<WorkspaceActionButton
|
||||
className={styles.actionButton}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import React from "react"
|
||||
|
||||
export const WorkspaceSettingsPage: React.FC = () => {
|
||||
return <div>Coming soon!</div>
|
||||
}
|
||||
Reference in New Issue
Block a user