Skip to content

Commit

Permalink
Remove team limit and sort by name.
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Hugs committed Dec 18, 2017
1 parent d2e67aa commit fe3f515
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/Calendar/Views.tsx
Expand Up @@ -387,8 +387,13 @@ export class CalendarComponent extends BaseComponent<ICalendarHubProps, Calendar
getItems: () => {
return new Promise<WebApiTeam[]>((resolve, reject) => {
Tfs_Core_WebApi.getClient()
.getTeams(VSS.getWebContext().project.id)
.then(resolve, reject);
.getTeams(VSS.getWebContext().project.id, 1000)
.then(result => {
result.sort((a, b) => {
return a.name.toUpperCase().localeCompare(b.name.toUpperCase());
});
resolve(result);
}, reject);
});
},
getListItem: (item: WebApiTeam) => {
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "team-calendar",
"publisher": "ms-devlabs",
"version": "0.5.194",
"version": "0.5.197",
"name": "Team Calendar",
"description": "Track events important to your team, view and manage days off, quickly see when sprints start and end, and more.",
"public": true,
Expand Down

0 comments on commit fe3f515

Please sign in to comment.