Skip to content

Commit 66eec0c

Browse files
author
Laurie T. Malau
committed
[dashboard] Team settings page
Fixes #5066
1 parent da1919f commit 66eec0c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

components/dashboard/src/Menu.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ export default function Menu() {
122122
{
123123
title: 'Members',
124124
link: `/t/${team.slug}/members`
125+
},
126+
{
127+
title: 'Settings',
128+
link: '/settings',
129+
alternatives: settingsMenu.flatMap(e => e.link)
125130
}
126131
];
127132
}

components/gitpod-db/src/typeorm/team-db-impl.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ export class TeamDBImpl implements TeamDB {
145145
return team;
146146
}
147147

148+
public async deleteTeam(userId: string, teamId: string): Promise<void> {
149+
const teamRepo = await this.getTeamRepo();
150+
const team = await this.findTeamById(teamId);
151+
if (team) {
152+
team.deleted = true;
153+
await teamRepo.save(team);
154+
}
155+
}
156+
148157
public async addMemberToTeam(userId: string, teamId: string): Promise<void> {
149158
const teamRepo = await this.getTeamRepo();
150159
const team = await teamRepo.findOneById(teamId);

0 commit comments

Comments
 (0)