Skip to content

Commit d8da447

Browse files
committed
Replace usage menu item with insights on Dedicated
Tool: gitpod/catfood.gitpod.cloud
1 parent ba2f367 commit d8da447

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

components/dashboard/src/menu/OrganizationSelector.tsx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,23 @@ export default function OrganizationSelector() {
7777
separator: true,
7878
link: "/members",
7979
});
80-
linkEntries.push({
81-
title: "Usage",
82-
customContent: <LinkEntry>Usage</LinkEntry>,
83-
active: false,
84-
separator: false,
85-
link: "/usage",
86-
});
80+
if (isDedicated) {
81+
linkEntries.push({
82+
title: "Insights",
83+
customContent: <LinkEntry>Insights</LinkEntry>,
84+
active: false,
85+
separator: false,
86+
link: "/insights",
87+
});
88+
} else {
89+
linkEntries.push({
90+
title: "Usage",
91+
customContent: <LinkEntry>Usage</LinkEntry>,
92+
active: false,
93+
separator: false,
94+
link: "/usage",
95+
});
96+
}
8797
// Show billing if user is an owner of current org
8898
if (owner) {
8999
if (billingMode?.mode === "usage-based") {

0 commit comments

Comments
 (0)