Skip to content

Commit 3e99adb

Browse files
committed
Remove download workspace button from workspaces
1 parent bdedc5a commit 3e99adb

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

components/dashboard/src/workspaces/WorkspaceEntry.tsx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ 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();
6560
const menuEntries: ContextMenuEntry[] = [
6661
{
6762
title: "Open",
@@ -91,8 +86,22 @@ export function WorkspaceEntry({ desc, model, isAdmin, stopWorkspace }: Props) {
9186
}
9287
menuEntries.push({
9388
title: "Download",
94-
href: downloadURL,
95-
download: `${ws.id}.tar`,
89+
customContent: (
90+
<div className="">
91+
<span className="block text-gray-300">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+
),
96105
});
97106
if (!isAdmin) {
98107
menuEntries.push(

0 commit comments

Comments
 (0)