Skip to content

Commit 8230582

Browse files
committed
v2.8.2. #342
1 parent 7d69691 commit 8230582

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

dist/jsgantt.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3613,7 +3613,7 @@ exports.createTaskInfo = function (pTask, templateStrOrFn) {
36133613
}
36143614
if (_this.vShowTaskInfoDur == 1 && !pTask.getMile()) {
36153615
vTmpDiv = draw_utils_1.newNode(vTaskInfo, 'div', null, 'gTILine gTId');
3616-
draw_utils_1.newNode(vTmpDiv, 'span', null, 'gTaskLabel', _this.vLangs[_this.vLang]['duration'] + ': ');
3616+
draw_utils_1.newNode(vTmpDiv, 'span', null, 'gTaskLabel', _this.vLangs[_this.vLang]['dur'] + ': ');
36173617
draw_utils_1.newNode(vTmpDiv, 'span', null, 'gTaskText', pTask.getDuration(_this.vFormat, _this.vLangs[_this.vLang]));
36183618
}
36193619
if (_this.vShowTaskInfoComp == 1) {
@@ -3623,7 +3623,7 @@ exports.createTaskInfo = function (pTask, templateStrOrFn) {
36233623
}
36243624
if (_this.vShowTaskInfoRes == 1) {
36253625
vTmpDiv = draw_utils_1.newNode(vTaskInfo, 'div', null, 'gTILine gTIr');
3626-
draw_utils_1.newNode(vTmpDiv, 'span', null, 'gTaskLabel', _this.vLangs[_this.vLang]['resource'] + ': ');
3626+
draw_utils_1.newNode(vTmpDiv, 'span', null, 'gTaskLabel', _this.vLangs[_this.vLang]['res'] + ': ');
36273627
draw_utils_1.newNode(vTmpDiv, 'span', null, 'gTaskText', pTask.getResource());
36283628
}
36293629
if (_this.vShowTaskInfoLink == 1 && pTask.getLink() != '') {
@@ -4298,7 +4298,8 @@ exports.internalPropertiesLang = {
42984298
'pEnd': 'enddate',
42994299
'pLink': 'link',
43004300
'pMile': 'mile',
4301-
'pRes': 'resource',
4301+
'pRes': 'res',
4302+
'pDuration': 'dur',
43024303
'pComp': 'comp',
43034304
'pGroup': 'group',
43044305
'pParent': 'parent',

e2e/app.e2e-spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ describe('ng-packaged App', () => {
88

99
beforeEach(() => {
1010
page = new NgPackagedPage();
11+
return page.navigateTo();
1112
});
1213

1314
afterEach(() => {
1415
page.navigateTo();
1516
});
1617

1718
it('it should change language from pt to en', () => {
18-
page.navigateTo();
19-
2019
element(by.css('.gtaskheading.gres')).getText()
2120
.then(t=>{
2221
expect(t).toEqual('Resource');
@@ -27,7 +26,5 @@ describe('ng-packaged App', () => {
2726
expect(t).toEqual('Responsável');
2827
});
2928
});
30-
31-
3229
});
3330

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsgantt-improved",
3-
"version": "2.8.1",
3+
"version": "2.8.2",
44
"description": "jsgantt-improved",
55
"main": "dist/index.js",
66
"scripts": {

src/task.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export const createTaskInfo = function (pTask, templateStrOrFn = null) {
450450
}
451451
if (this.vShowTaskInfoDur == 1 && !pTask.getMile()) {
452452
vTmpDiv = newNode(vTaskInfo, 'div', null, 'gTILine gTId');
453-
newNode(vTmpDiv, 'span', null, 'gTaskLabel', this.vLangs[this.vLang]['duration'] + ': ');
453+
newNode(vTmpDiv, 'span', null, 'gTaskLabel', this.vLangs[this.vLang]['dur'] + ': ');
454454
newNode(vTmpDiv, 'span', null, 'gTaskText', pTask.getDuration(this.vFormat, this.vLangs[this.vLang]));
455455
}
456456
if (this.vShowTaskInfoComp == 1) {
@@ -460,7 +460,7 @@ export const createTaskInfo = function (pTask, templateStrOrFn = null) {
460460
}
461461
if (this.vShowTaskInfoRes == 1) {
462462
vTmpDiv = newNode(vTaskInfo, 'div', null, 'gTILine gTIr');
463-
newNode(vTmpDiv, 'span', null, 'gTaskLabel', this.vLangs[this.vLang]['resource'] + ': ');
463+
newNode(vTmpDiv, 'span', null, 'gTaskLabel', this.vLangs[this.vLang]['res'] + ': ');
464464
newNode(vTmpDiv, 'span', null, 'gTaskText', pTask.getResource());
465465
}
466466
if (this.vShowTaskInfoLink == 1 && pTask.getLink() != '') {

src/utils/general_utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export const internalPropertiesLang = {
88
'pEnd': 'enddate',
99
'pLink': 'link',
1010
'pMile': 'mile',
11-
'pRes': 'resource',
11+
'pRes': 'res',
12+
'pDuration': 'dur',
1213
'pComp': 'comp',
1314
'pGroup': 'group',
1415
'pParent': 'parent',

0 commit comments

Comments
 (0)