Skip to content

Commit

Permalink
[grid] Putting queue below running sessions (UI)
Browse files Browse the repository at this point in the history
Like that, when the queue is big, running sessions
won't be pushed way to much to the bottom and will
still be visible.
  • Loading branch information
diemol committed Feb 11, 2021
1 parent 965023b commit 1d0e131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: '100%',
paddingTop: 30,
},
queueList: {
minWidth: 750,
Expand Down
3 changes: 2 additions & 1 deletion javascript/grid-ui/src/screens/Sessions/Sessions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function Sessions() {
</Grid>
);
}

if (error) {
const message = "There has been an error while loading the running and queued Sessions from the Grid."
return (
Expand All @@ -42,8 +43,8 @@ export default function Sessions() {

return (
<Grid container spacing={3}>
<QueuedSessions sessionQueueRequests={data.sessionsInfo.sessionQueueRequests}/>
<RunningSessions sessions={data.sessionsInfo.sessions}/>
<QueuedSessions sessionQueueRequests={data.sessionsInfo.sessionQueueRequests}/>
</Grid>
);
}

0 comments on commit 1d0e131

Please sign in to comment.