Skip to content

Commit d324ca8

Browse files
committed
[dashboard] Fix context URL links and button links in workspace stopping/stopped pages
Fixes #3707
1 parent 3276d41 commit d324ca8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

components/dashboard/src/start/StartWorkspace.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
237237
<div className="rounded-full w-3 h-3 text-sm bg-gitpod-kumquat">&nbsp;</div>
238238
<div>
239239
<p className="text-gray-700 font-semibold">{this.state.workspaceInstance.workspaceId}</p>
240-
<a href={this.state.workspace?.contextURL}><p className="w-56 truncate hover:underline" >{this.state.workspace?.contextURL}</p></a>
240+
<a target="_parent" href={this.state.workspace?.contextURL}><p className="w-56 truncate hover:underline" >{this.state.workspace?.contextURL}</p></a>
241241
</div>
242242
</div>
243-
<div className="mt-10 flex">
244-
<button className="secondary mx-auto" onClick={() => this.redirectTo(gitpodHostUrl.asDashboard().toString())}>Go to Dashboard</button>
243+
<div className="mt-10 flex justify-center">
244+
<a target="_parent" href={gitpodHostUrl.asDashboard().toString()}><button className="secondary">Go to Dashboard</button></a>
245245
</div>
246246
</div>;
247247
break;
@@ -261,15 +261,15 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
261261
<div className="rounded-full w-3 h-3 text-sm bg-gray-300">&nbsp;</div>
262262
<div>
263263
<p className="text-gray-700 font-semibold">{this.state.workspaceInstance.workspaceId}</p>
264-
<a href={this.state.workspace?.contextURL}><p className="w-56 truncate hover:underline" >{this.state.workspace?.contextURL}</p></a>
264+
<a target="_parent" href={this.state.workspace?.contextURL}><p className="w-56 truncate hover:underline" >{this.state.workspace?.contextURL}</p></a>
265265
</div>
266266
</div>
267267
{pendingChanges.length > 0
268268
? <p className="mt-2 text-red-500">{pendingChanges.length} Change{pendingChanges.length === 1 ? '' : 's'}</p>
269269
: <p className="mt-2">No Changes</p>}
270-
<div className="mt-10 flex space-x-2">
271-
<button className="secondary" onClick={() => this.redirectTo(gitpodHostUrl.asDashboard().toString())}>Go to Dashboard</button>
272-
<button onClick={() => this.redirectTo(gitpodHostUrl.asStart(this.state.workspaceInstance?.workspaceId).toString())}>Open Workspace</button>
270+
<div className="mt-10 flex justify-center space-x-2">
271+
<a target="_parent" href={gitpodHostUrl.asDashboard().toString()}><button className="secondary">Go to Dashboard</button></a>
272+
<a target="_parent" href={gitpodHostUrl.asStart(this.state.workspaceInstance?.workspaceId).toString()}><button>Open Workspace</button></a>
273273
</div>
274274
</div>;
275275
break;

0 commit comments

Comments
 (0)