Skip to content

Commit

Permalink
deleting comments in teams report component
Browse files Browse the repository at this point in the history
  • Loading branch information
SujalLama committed Dec 17, 2021
1 parent bdd8afe commit 8dffe16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions docker/planet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ services:
ports:
- "2200:5984"
db-init:
image: treehouses/planet-tags:db-init-0.13.4-comment-system-enterprise-06df71d0
image: treehouses/planet-tags:arm-db-init-0.13.4-comment-system-enterprise-bdd8afe5
depends_on:
- couchdb
environment:
- COUCHDB_HOST=http://couchdb:5984
planet:
image: treehouses/planet-tags:arm-0.13.4-comment-system-enterprise-06df71d0
image: treehouses/planet-tags:0.13.4-comment-system-enterprise-bdd8afe5
ports:
- "80:80"
volumes:
Expand Down
16 changes: 0 additions & 16 deletions src/app/teams/teams-reports.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,9 @@ export class TeamsReportsComponent implements DoCheck, OnInit {
this.route.paramMap.subscribe((params: ParamMap) => {
this.teamId = params.get('teamId') || planetAndParentId(this.stateService.configuration);
this.getNews(this.teamId);
// this.initTeam(this.teamId);
});
}

// initTeam(teamId: string) {
// this.getTeam(teamId).subscribe((activities) => {
// this.setStatus(teamId, this.userService.get());
// });
// }

// setStatus(team, user) {
// this.userStatus = 'unrelated';
// if (team === undefined) {
// return;
// }
// this.userStatus = this.isUserInMemberDocs(this.requests, user) ? 'requesting' : this.userStatus;
// this.userStatus = this.isUserInMemberDocs(this.members, user) ? 'member' : this.userStatus;
// }

isUserInMemberDocs(memberDocs, user) {
return memberDocs.some((memberDoc: any) => memberDoc.userId === user._id && memberDoc.userPlanetCode === user.planetCode);
}
Expand Down

0 comments on commit 8dffe16

Please sign in to comment.