Skip to content

Commit

Permalink
Revert removing the workspace download feature
Browse files Browse the repository at this point in the history
Reverts #14393
  • Loading branch information
gtsiolis authored and roboquat committed Nov 21, 2022
1 parent 21adcfd commit 4c338c6
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions components/dashboard/src/workspaces/WorkspaceEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ export function WorkspaceEntry({ desc, model, isAdmin, stopWorkspace }: Props) {
pathname: "/start/",
hash: "#" + ws.id,
});
const downloadURL = new GitpodHostUrl(window.location.href)
.with({
pathname: `/workspace-download/get/${ws.id}`,
})
.toString();
const menuEntries: ContextMenuEntry[] = [
{
title: "Open",
Expand Down Expand Up @@ -86,22 +91,8 @@ export function WorkspaceEntry({ desc, model, isAdmin, stopWorkspace }: Props) {
}
menuEntries.push({
title: "Download",
customContent: (
<div className="">
<span className="block text-gray-300 dark:text-gray-500">Download</span>
<span className="text-gray-400">
Deprecated.{" "}
<a
href="https://github.com/gitpod-io/gitpod/issues/7901"
className="gp-link"
target="_blank"
rel="noreferrer"
>
Learn more
</a>
</span>
</div>
),
href: downloadURL,
download: `${ws.id}.tar`,
});
if (!isAdmin) {
menuEntries.push(
Expand Down

0 comments on commit 4c338c6

Please sign in to comment.