Skip to content

Commit 8c7d1ab

Browse files
author
Laurie T. Malau
committed
t
1 parent daccf43 commit 8c7d1ab

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

components/dashboard/src/AppNotifications.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { useEffect, useState } from "react";
88
import Alert from "./components/Alert";
9-
import { getGitpodService } from "./service/service";
9+
import { getGitpodService, gitpodHostUrl } from "./service/service";
1010

1111
const KEY_APP_NOTIFICATIONS = "gitpod-app-notifications";
1212

@@ -36,6 +36,7 @@ export function AppNotifications() {
3636
};
3737

3838
const topNotification = notifications[0];
39+
3940
if (topNotification === undefined) {
4041
return null;
4142
}
@@ -55,6 +56,9 @@ export function AppNotifications() {
5556
className="flex rounded mb-2 w-full"
5657
>
5758
<div>{topNotification}</div>
59+
<a className="gp-link hover:text-gray-600" href={`${gitpodHostUrl}billing`}>
60+
Manage billing.
61+
</a>{" "}
5862
</Alert>
5963
</div>
6064
);

components/server/ee/src/workspace/gitpod-server-impl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,9 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
22622262
}
22632263
case "team": {
22642264
teamOrUser = await this.teamDB.findTeamById(limit.attributionId.teamId);
2265+
if (teamOrUser) {
2266+
result.push(teamOrUser?.slug);
2267+
}
22652268
break;
22662269
}
22672270
}

0 commit comments

Comments
 (0)