|
|
|
@ -43,7 +43,7 @@ import {QueryColumn} from "core-components/wp-query/query-column"; |
|
|
|
|
}) |
|
|
|
|
export class WorkPackageTableSumsRowController implements AfterViewInit { |
|
|
|
|
|
|
|
|
|
private text:{ sumFor:string, allWorkPackages:string }; |
|
|
|
|
private text:{ sum:string }; |
|
|
|
|
|
|
|
|
|
private $element:JQuery; |
|
|
|
|
|
|
|
|
@ -55,8 +55,7 @@ export class WorkPackageTableSumsRowController implements AfterViewInit { |
|
|
|
|
readonly I18n:I18nService) { |
|
|
|
|
|
|
|
|
|
this.text = { |
|
|
|
|
sumFor: I18n.t('js.label_sum_for'), |
|
|
|
|
allWorkPackages: I18n.t('js.label_all_work_packages') |
|
|
|
|
sum: I18n.t('js.label_sum') |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -137,7 +136,7 @@ export class WorkPackageTableSumsRowController implements AfterViewInit { |
|
|
|
|
|
|
|
|
|
private appendFirstLabel(div:HTMLElement) { |
|
|
|
|
const span = document.createElement('span'); |
|
|
|
|
span.textContent = `${this.text.sumFor} ${this.text.allWorkPackages}`; |
|
|
|
|
span.textContent = `${this.text.sum}`; |
|
|
|
|
jQuery(div).prepend(span); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|