Skip to content

Commit

Permalink
[dashboard] display opening workspace when ide is not ready yet
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Mar 29, 2022
1 parent 26f35e4 commit 30c7460
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions components/dashboard/src/start/StartWorkspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -431,48 +431,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
}
if (!this.state.desktopIde) {
phase = StartPhase.Running;

if (this.props.dontAutostart) {
// hide the progress bar, as we're already running
phase = undefined;
title = "Running";

// in case we dontAutostart the IDE we have to provide controls to do so
statusMessage = (
<div>
<div className="flex space-x-3 items-center text-left rounded-xl m-auto px-4 h-16 w-72 mt-4 mb-2 bg-gray-100 dark:bg-gray-800">
<div className="rounded-full w-3 h-3 text-sm bg-green-500">&nbsp;</div>
<div>
<p className="text-gray-700 dark:text-gray-200 font-semibold w-56 truncate">
{this.state.workspaceInstance.workspaceId}
</p>
<a target="_parent" href={contextURL}>
<p className="w-56 truncate hover:text-blue-600 dark:hover:text-blue-400">
{contextURL}
</p>
</a>
</div>
</div>
<div className="mt-10 justify-center flex space-x-2">
<a target="_parent" href={gitpodHostUrl.asDashboard().toString()}>
<button className="secondary">Go to Dashboard</button>
</a>
<a
target="_parent"
href={
gitpodHostUrl
.asStart(this.props.workspaceId)
.toString() /** move over 'start' here to fetch fresh credentials in case this is an older tab */
}
>
<button>Open Workspace</button>
</a>
</div>
</div>
);
} else {
statusMessage = <p className="text-base text-gray-400">Opening Workspace …</p>;
}
statusMessage = <p className="text-base text-gray-400">Opening Workspace …</p>;
} else {
phase = StartPhase.IdeReady;
const openLink = this.state.desktopIde.link;
Expand Down

0 comments on commit 30c7460

Please sign in to comment.