Skip to content

Commit

Permalink
Small fixes around grunt and scopes.
Browse files Browse the repository at this point in the history
  • Loading branch information
serkan-inci committed Oct 21, 2015
1 parent bf120ef commit ddb906b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 2 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,8 @@ module.exports = function (grunt) {
dest: '<%= dirs.output.packages %>' + name
},
{
expand: true,
flatten: true,
src: 'lib/*.js',
dest: '<%= dirs.output.web %>' + name + '/sdk/scripts'
src: 'lib/VSS.SDK.js',
dest: '<%= dirs.output.web %>' + name + '/sdk/scripts/VSS.SDK.js'
}
]
};
Expand Down
6 changes: 3 additions & 3 deletions ui/compareToForm.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
VSS.require([
"VSS/Service",
"VSS/Controls",
"VSS/Controls/Common",
"VSS/Controls/Combos",
"TFS/VersionControl/GitRestClient"],
function (Service, Controls, CommonControls, GitWebApi) {
function (Service, Controls, Combos, GitWebApi) {

var compareToForm = (function() {

Expand All @@ -36,7 +36,7 @@
});
}

branchSelector = Controls.create(CommonControls.Combo, $("#main-container"), {
branchSelector = Controls.create(Combos.Combo, $("#main-container"), {
mode: "drop",
allowEdit: false,
source: [],
Expand Down
1 change: 1 addition & 0 deletions ui/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"categories": [
"Sync and integration"
],
"scopes": ["vso.work", "vso.work_write"],
"contributions": [
{
"id": "sample-ui-group",
Expand Down
4 changes: 2 additions & 2 deletions ui/workItemService.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
"TFS/WorkItemTracking/Services",
"TFS/WorkItemTracking/RestClient",
"VSS/Controls",
"VSS/Controls/Common"], function(_WorkItemServices, _WorkItemRestClient, _Controls, _ControlsCommon) {
"VSS/Controls/Combos"], function(_WorkItemServices, _WorkItemRestClient, _Controls, _Combos) {

VSS.notifyLoadSucceeded();

var workItemTypesCombo;

var witClient = _WorkItemRestClient.getClient();
witClient.getWorkItemTypes(VSS.getWebContext().project.name).then(function(workItemTypes) {
workItemTypesCombo = _Controls.create(_ControlsCommon.Combo, $(".work-item-types"), {
workItemTypesCombo = _Controls.create(_Combos.Combo, $(".work-item-types"), {
source: $.map(workItemTypes, function(wiType) { return wiType.name })
});
if (workItemTypes.length > 0) {
Expand Down

0 comments on commit ddb906b

Please sign in to comment.