Skip to content

Commit 1768968

Browse files
committed
jsbeautify
1 parent b50676a commit 1768968

File tree

6 files changed

+118
-118
lines changed

6 files changed

+118
-118
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ _SpecRunner.html
99
.settings
1010
deploy/
1111
-deploy/Ugly.txt
12+
auth.*.json

deploy/Ugly.txt

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "custom-grid-with-deep-export",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"scripts": {
55
"debug": "grunt debug",
66
"debug:watch": "nodemon --exec grunt debug",
@@ -9,7 +9,7 @@
99
"deploy-debugsdk:watch": "nodemon --exec grunt deploy-debugsdk"
1010
},
1111
"dependencies": {
12-
"@agile-central-technical-services/utils-ancestor-pi-inline-filter": "^1.0.6"
12+
"@agile-central-technical-services/utils-ancestor-pi-inline-filter": "^1.0.8"
1313
},
1414
"devDependencies": {
1515
"@agile-central-technical-services/utils-shared-views": "^1.0.0",

src/javascript/app.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,12 @@ Ext.define("custom-grid-with-deep-export", {
224224
}];
225225
}
226226
else if (currentModel.startsWith("portfolioitem")) {
227-
var idx = _.indexOf(this.getPortfolioItemTypeNames(), currentModel);
227+
var piTypeNames = this.getPortfolioItemTypeNames();
228+
var idx = _.indexOf(piTypeNames, currentModel);
228229
var childModels = [];
229230
if (idx > 0) {
230231
for (var i = idx; i > 0; i--) {
231-
childModels.push(this.getPortfolioItemTypeNames()[i - 1].toLowerCase());
232+
childModels.push(piTypeNames[i - 1]);
232233
}
233234
}
234235

@@ -241,8 +242,6 @@ Ext.define("custom-grid-with-deep-export", {
241242
text: 'Export Portfolio Items and User Stories...',
242243
handler: this._export,
243244
scope: this,
244-
includeStories: true,
245-
includeTasks: false,
246245
childModels: childModels.concat(['hierarchicalrequirement'])
247246
}, {
248247
text: 'Export Portfolio Items, User Stories and Tasks...',
@@ -253,7 +252,7 @@ Ext.define("custom-grid-with-deep-export", {
253252
text: 'Export Portfolio Items and Child Items...',
254253
handler: this._export,
255254
scope: this,
256-
childModels: childModels.concat(['hierarchicalrequirement', 'defect', 'testcase'])
255+
childModels: childModels.concat(['hierarchicalrequirement', 'task', 'defect', 'testcase'])
257256
}];
258257
}
259258
else if (currentModel == 'defect') {
@@ -295,7 +294,7 @@ Ext.define("custom-grid-with-deep-export", {
295294
},
296295
getPortfolioItemTypeNames: function() {
297296
return _.map(this.portfolioItemTypes, function(type) {
298-
return type.get('TypePath');
297+
return type.get('TypePath').toLowerCase();
299298
});
300299
},
301300

0 commit comments

Comments
 (0)