Skip to content

Commit cbfd497

Browse files
committed
Revert removing the workspace download feature
Reverts #14393
1 parent 6824a8f commit cbfd497

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

components/dashboard/src/workspaces/WorkspaceEntry.tsx

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ export function WorkspaceEntry({ desc, model, isAdmin, stopWorkspace }: Props) {
5757
pathname: "/start/",
5858
hash: "#" + ws.id,
5959
});
60+
const downloadURL = new GitpodHostUrl(window.location.href)
61+
.with({
62+
pathname: `/workspace-download/get/${ws.id}`,
63+
})
64+
.toString();
6065
const menuEntries: ContextMenuEntry[] = [
6166
{
6267
title: "Open",
@@ -86,22 +91,8 @@ export function WorkspaceEntry({ desc, model, isAdmin, stopWorkspace }: Props) {
8691
}
8792
menuEntries.push({
8893
title: "Download",
89-
customContent: (
90-
<div className="">
91-
<span className="block text-gray-300 dark:text-gray-500">Download</span>
92-
<span className="text-gray-400">
93-
Deprecated.{" "}
94-
<a
95-
href="https://github.com/gitpod-io/gitpod/issues/7901"
96-
className="gp-link"
97-
target="_blank"
98-
rel="noreferrer"
99-
>
100-
Learn more
101-
</a>
102-
</span>
103-
</div>
104-
),
94+
href: downloadURL,
95+
download: `${ws.id}.tar`,
10596
});
10697
if (!isAdmin) {
10798
menuEntries.push(

0 commit comments

Comments
 (0)