mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 12:33:02 +00:00
Fix server url
This commit is contained in:
@@ -11,8 +11,8 @@ import "./server-dashboard.css";
|
|||||||
import { timeSince } from "../../util/timeSince";
|
import { timeSince } from "../../util/timeSince";
|
||||||
import PaginationFooter from "../PaginationFooter/PaginationFooter";
|
import PaginationFooter from "../PaginationFooter/PaginationFooter";
|
||||||
|
|
||||||
const AccessServerButton = ({ userName, serverName }) => (
|
const AccessServerButton = ({ url }) => (
|
||||||
<a href={`/user/${userName}/${serverName || ""}`}>
|
<a href={url || ""}>
|
||||||
<button className="btn btn-primary btn-xs" style={{ marginRight: 20 }}>
|
<button className="btn btn-primary btn-xs" style={{ marginRight: 20 }}>
|
||||||
Access Server
|
Access Server
|
||||||
</button>
|
</button>
|
||||||
@@ -401,10 +401,7 @@ const ServerDashboard = (props) => {
|
|||||||
serverName={server.name}
|
serverName={server.name}
|
||||||
userName={user.name}
|
userName={user.name}
|
||||||
/>
|
/>
|
||||||
<AccessServerButton
|
<AccessServerButton url={server.url} />
|
||||||
serverName={server.name}
|
|
||||||
userName={user.name}
|
|
||||||
/>
|
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
// Start Single-user server
|
// Start Single-user server
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user