File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ export default function Menu() {
122
122
{
123
123
title : 'Members' ,
124
124
link : `/t/${ team . slug } /members`
125
+ } ,
126
+ {
127
+ title : 'Settings' ,
128
+ link : '/settings' ,
129
+ alternatives : settingsMenu . flatMap ( e => e . link )
125
130
}
126
131
] ;
127
132
}
Original file line number Diff line number Diff line change @@ -145,6 +145,15 @@ export class TeamDBImpl implements TeamDB {
145
145
return team ;
146
146
}
147
147
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
+
148
157
public async addMemberToTeam ( userId : string , teamId : string ) : Promise < void > {
149
158
const teamRepo = await this . getTeamRepo ( ) ;
150
159
const team = await teamRepo . findOneById ( teamId ) ;
You can’t perform that action at this time.
0 commit comments