diff --git a/jsx/src/components/ServerDashboard/ServerDashboard.jsx b/jsx/src/components/ServerDashboard/ServerDashboard.jsx index e48be0c0..9b08f0fa 100644 --- a/jsx/src/components/ServerDashboard/ServerDashboard.jsx +++ b/jsx/src/components/ServerDashboard/ServerDashboard.jsx @@ -10,6 +10,14 @@ import "./server-dashboard.css"; import { timeSince } from "../../util/timeSince"; import PaginationFooter from "../PaginationFooter/PaginationFooter"; +const AccessServerButton = ({ userName, serverName }) => ( + + + +); + const ServerDashboard = (props) => { // sort methods var usernameDesc = (e) => e.sort((a, b) => (a.name > b.name ? 1 : -1)), @@ -29,6 +37,7 @@ const ServerDashboard = (props) => { var [errorAlert, setErrorAlert] = useState(null); var [sortMethod, setSortMethod] = useState(null); + var [disabledButtons, setDisabledButtons] = useState({}); var user_data = useSelector((state) => state.user_data), user_page = useSelector((state) => state.user_page), @@ -72,6 +81,101 @@ const ServerDashboard = (props) => { user_data = sortMethod(user_data); } + const StopServerButton = ({ serverName, userName }) => { + var [isDisabled, setIsDisabled] = useState(false); + return ( + + ); + }; + + const StartServerButton = ({ serverName, userName }) => { + var [isDisabled, setIsDisabled] = useState(false); + return ( + + ); + }; + + const EditUserCell = ({ user, numServers, serverName }) => { + if (serverName) return null; + return ( +
{server.name}
+ ) : ( +[MAIN]
+ )} ++ Warning: JupyterHub seems to be served over an unsecured HTTP connection. + We strongly recommend enabling HTTPS for JupyterHub. +
+ Sign in with {{login_service}}