From fe3f515b0d2191265bea2e93db5257c6845ab840 Mon Sep 17 00:00:00 2001 From: Trevor Gau Date: Mon, 18 Dec 2017 17:18:58 -0500 Subject: [PATCH] Remove team limit and sort by name. --- src/Calendar/Views.tsx | 9 +++++++-- vss-extension.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Calendar/Views.tsx b/src/Calendar/Views.tsx index 7d858f6..aae5a23 100644 --- a/src/Calendar/Views.tsx +++ b/src/Calendar/Views.tsx @@ -387,8 +387,13 @@ export class CalendarComponent extends BaseComponent { return new Promise((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) => { diff --git a/vss-extension.json b/vss-extension.json index 1d2bf9f..538a6f7 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -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,