diff --git a/frontend/src/components/PDFGenerator.js b/frontend/src/components/PDFGenerator.js index dd0ec41..f4144fc 100644 --- a/frontend/src/components/PDFGenerator.js +++ b/frontend/src/components/PDFGenerator.js @@ -175,6 +175,25 @@ class PDFGenerator { this.pdf.text(phoneNumber, this.margin + 120, this.yPos); this.yPos += this.LINE_HEIGHT; } + + addAddress(clubName, addressLines) { + if (!this.addressY) { + this.addressY = 30; + } + + this.doc.setFontSize(14); + this.doc.setFont(undefined, 'bold'); + this.doc.text(clubName, 20, this.addressY); + + this.doc.setFontSize(12); + this.doc.setFont(undefined, 'normal'); + addressLines.forEach(line => { + this.addressY += 7; + this.doc.text(line, 20, this.addressY); + }); + + this.addressY += 10; // Abstand zur nächsten Adresse + }, } export default PDFGenerator; diff --git a/frontend/src/views/ScheduleView.vue b/frontend/src/views/ScheduleView.vue index 408578e..83fea52 100644 --- a/frontend/src/views/ScheduleView.vue +++ b/frontend/src/views/ScheduleView.vue @@ -179,24 +179,6 @@ export default { return uniqueLocations; }, - addAddress(clubName, addressLines) { - if (!this.addressY) { - this.addressY = 30; - } - - this.doc.setFontSize(14); - this.doc.setFont(undefined, 'bold'); - this.doc.text(clubName, 20, this.addressY); - - this.doc.setFontSize(12); - this.doc.setFont(undefined, 'normal'); - addressLines.forEach(line => { - this.addressY += 7; - this.doc.text(line, 20, this.addressY); - }); - - this.addressY += 10; // Abstand zur nächsten Adresse - }, }, async created() { await this.loadLeagues();