Fix CSV export headline (CC-32)
parent
bf8ff5d2f6
commit
026a3611a6
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "opt-cc",
|
"name": "opt-cc",
|
||||||
"version": "1.7.6",
|
"version": "1.7.7",
|
||||||
"author": "Florian Hartwich <hardi@noarch.de>",
|
"author": "Florian Hartwich <hardi@noarch.de>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -71,7 +71,7 @@ export class ScoreboardComponent implements OnChanges {
|
||||||
exportCSV() {
|
exportCSV() {
|
||||||
let csvOut = '';
|
let csvOut = '';
|
||||||
for (let i = 0; i < this.tableHead.length; i++) {
|
for (let i = 0; i < this.tableHead.length; i++) {
|
||||||
csvOut += this.tableHead[i];
|
csvOut += this.tableHead[i].head;
|
||||||
if (i !== this.tableHead.length - 1) {
|
if (i !== this.tableHead.length - 1) {
|
||||||
csvOut += ',';
|
csvOut += ',';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue